libxaac-mirror/fuzzer
akshayragir833 fb6a68848a
Enhancements to the uniDRCv1 user configuration through DRC (#101)
Significance:
==============
- Enhanced the support to uniDRCv1 user configuration through DRC
  configuration param file

Testing:
=========
- smoke-tested on x86, x86_64, Mac, armv7, armv8 and MSVS

Co-authored-by: Akshay Ragir <100833@ittiam.com>
2025-08-14 16:57:31 +05:30
..
Android.bp Encoder Enhancements (#34) 2023-06-23 17:54:31 +05:30
ossfuzz.sh Update ossfuzz.sh 2023-09-27 09:42:16 +05:30
README.md Combined Workspace for Encoder and Decoder (#33) 2023-05-22 20:11:52 +05:30
xaac_dec_fuzzer.cmake cleanup cmake files 2023-04-28 09:34:42 +05:30
xaac_dec_fuzzer.cpp Loudness leveling support for encoder and decoder (#99) 2025-07-28 17:40:45 +05:30
xaac_dec_fuzzer.dict Added xaac_dec_fuzzer 2019-09-23 15:50:57 -07:00
xaac_enc_fuzzer.cmake USAC along with DRC support for libxaac encoder (#37) 2023-07-14 13:04:15 +05:30
xaac_enc_fuzzer.cpp Enhancements to the uniDRCv1 user configuration through DRC (#101) 2025-08-14 16:57:31 +05:30
xaac_enc_fuzzer.dict Combined Workspace for Encoder and Decoder (#33) 2023-05-22 20:11:52 +05:30

Fuzzer for libxaac decoder and encoder

This describes steps to build xaac_dec_fuzzer and xaac_enc_fuzzer binary.

Linux x86/x64

Requirements

  • cmake (3.5 or above)
  • make
  • clang (6.0 or above) needs to support -fsanitize=fuzzer, -fsanitize=fuzzer-no-link

Steps to build

Clone libxaac repository

$ git clone https://android.googlesource.com/platform/external/libxaac

Create a directory inside libxaac and change directory

 $ cd libxaac
 $ mkdir build
 $ cd build

Build fuzzer with required sanitizers (-DSANITIZE=fuzzer-no-link is mandatory to enable fuzzers)

 $ cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
   -DCMAKE_BUILD_TYPE=Debug -DSANITIZE=fuzzer-no-link,address,\
   signed-integer-overflow,unsigned-integer-overflow
 $ make

Steps to run

Create a directory CORPUS_DIR and copy some elementary aac files to that folder To run the fuzzer

$ ./xaac_dec_fuzzer CORPUS_DIR
$ ./xaac_enc_fuzzer CORPUS_DIR

Android

Steps to build

Build the fuzzer

  $ SANITIZE_TARGET=address SANITIZE_HOST=address mmma -j$(nproc) \
    external/libxaac/fuzzer

Steps to run

Create a directory CORPUS_DIR and copy some elementary aac files to that folder Push this directory to device.

To run on device

  $ adb sync data
  $ adb shell /data/fuzz/xaac_dec_fuzzer CORPUS_DIR

To run on host

  $ $ANDROID_HOST_OUT/fuzz/xaac_dec_fuzzer CORPUS_DIR

References: