Commit graph

42 commits

Author SHA1 Message Date
Sushant
bbe50c922a avcenc: Enabling keep_threads_active in cfg and avc_enc_fuzzer
Test: avcenc -c enc.cfg
Change-Id: I45b32621aa3d64b569e5ac6b7f23405aa1711c82
2025-04-22 18:02:12 +05:30
Sushant
5e9c764903 avcenc: Replacing KEEP_THREADS_ACTIVE with runtime check
Test: avcenc -c enc.cfg
Change-Id: If6c8c29d2b5b1322796b8b25dc74231d13b61243
2025-04-22 17:09:57 +05:30
Sushant
262b845c31 avc_enc_fuzzer: call retrieve memrec before deinit
Change-Id: I79fb713c655f1a79941165f0214575389561f0bb
2025-04-21 18:54:01 +05:30
Suyog Pawar
266cda3c3b libavc : Enable support for MacOS
Test: ./avcenc
      ./avcdec

Change-Id: If03196cf979d7f6638b99d5b13afba6df3364178
2024-10-04 06:51:30 -07:00
Mallikarjun Kamble
bc0de21907 Limit decode calls to a maximum of 100 to prevent potential timeouts with fuzzers 2024-07-22 09:58:04 -07:00
Harish Mahendrakar
9030e26c46 ossfuzz.sh: enable null sanitizer 2023-08-01 23:02:16 -07:00
Srujan Vandrangi
40a2df3244 decoder: limit number of calls to decode header
Test: avc_dec_fuzzer
2023-07-31 11:41:35 -07:00
Srujan Vandrangi
07452e198b decoder: set keep_threads_active to 1 in the testbench and fuzzer
Bug: 289097296
Test: Build
2023-07-29 16:38:34 -07:00
Srujan Vandrangi
72e8241a64 decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable
Bug: 289097296
Test: Build
2023-07-22 09:51:37 -07:00
Harish Mahendrakar
9783b509ac ossfuzz.sh: Enable mvc_dec_fuzzer 2023-03-23 13:23:10 -07:00
Harish Mahendrakar
33312473dc ossfuzz.sh: Enable avc_enc_fuzzer 2023-03-21 17:43:13 -07:00
Harish Mahendrakar
ad23214a83 ossfuzz: opt out of null and shift sanitizers 2023-03-21 12:01:30 -07:00
Harish Mahendrakar
b800d35a56
avc_enc_fuzzer: Add #include <tuple>
included <tuple> to fix errors seen when using some compilers
2023-03-11 09:44:47 -08:00
Harish Mahendrakar
f54d852a3f Updates to fuzzer/Android.bp
- Used single defaults for all fuzzers
- Added new fields to fuzz_config like hotlists, fuzzed_code_usage etc.

Test: Builds
2023-03-08 20:27:18 -08:00
Harish Mahendrakar
7164209291 Updates to Android.bp and some formatting fixes
- Only libavcdec is marked as available to apex modules instead
  of marking all decoder libraries to be available to apex modules.
- some formatting changes for consistency with neighboring lines.

Test: Builds
2023-03-08 20:27:18 -08:00
Mallikarjun Kamble
8e41a50de4 libavc: Added support for SII SEI message
- Add SII flag and SII parameters for the encoder and decoder.
- Encoder: Added support for SII SEI
- Decoder: Added support for SII SEI parsing and exporting
2023-02-14 22:00:13 -08:00
Ashwin Natesan
da58813a3a svcenc: 420sp support added to fuzzer
420sp was not being tested in svcenc fuzzer. This is now being tested.
2023-02-13 10:05:03 -08:00
Harish Mahendrakar
b2a61a152a
ossfuzz.sh: Enable svc_dec_fuzzer 2023-02-08 11:00:12 -08:00
chamarthi.kishore
e6c806df90 formatting changes 2023-02-08 07:55:47 -08:00
chamarthi.kishore
375b9b7e44 SVC decoder support 2023-02-08 07:55:47 -08:00
Harish Mahendrakar
e14ee149ef oss-fuzz.sh: Enable svc enc fuzzer
Currently only avc_dec_fuzzer is enabled on oss-fuzz.sh.
This enables svc_enc_fuzzer in oss-fuzz.

Test: Build oss-fuzz with this change
2023-02-01 15:40:01 -08:00
Ashwin Natesan
bb0f31cb6b Encoder: SVC encoding support added
Added support for encoding 'Scalable Baseline' profile, corresponding to
profile_idc of 83 in 'Rec. ITU-T H.264 (11/2007)'.

Bug: 248891908
Test: svcenc -c enc.cfg
Change-Id: Ib12ca4c4a8c0e674738ae2af01558a08cefe0929
2023-01-30 11:07:10 -08:00
Ashwin Natesan
cd642700aa readme: integer sanitizer options added
Documents how to enable sanitization for fuzzing outside of android build system.

Change-Id: Ib14fd1215b9db1ba582a9dbbd2d592680a4e230e
2022-08-23 06:19:46 +00:00
Treehugger Robot
d249d3642d Merge "Decoder: MVC decoding support added" 2022-08-08 14:53:05 +00:00
Ashwin Natesan
779bbfdb00 Decoder: MVC decoding support added
Added support for decoding 'Multiview High' profile, corresponding to
profile_idc of 118 in 'Rec. ITU-T H.264 (08/2021)'.

Bug: 232169767
Test: atest CtsMediaV2TestCases

Change-Id: I63256344a8a205e74f2bcebe555f5ba6cc3163d0
2022-08-06 05:51:31 +00:00
Harish Mahendrakar
4ab2109685 avc_dec_fuzzer: Zero initialize input and output structures to API calls
Input and output structures to decoder's functions are now zero
initialized. This way any new additional members in these structures
will be initialized correctly.

Bug: oss-fuzz:49322
Bug: 175179303
Test: avc_dec_fuzzer with memory sanitizer
Change-Id: Ic89625aaaededdef107c34bf8bdc793824b96f85
2022-07-21 19:56:14 +00:00
Ashwin Natesan
ca68f61641 Builds: Modular cmake scripts added
Cmake scripts are now modular. Separate scripts now handle
build specifications for each target and dependency.

Toolchain files have been added for armv7, armv8 builds.

Bug: 213579857
Test: Builds using cmake
Test: Builds in OSS-fuzz

Change-Id: Iac62b443c0a0de09a2ce6553a660db2c3d5dc846
2022-02-02 11:14:55 +05:30
Bob Badour
c0aae295ed [LSC] Add LOCAL_LICENSE_KINDS to external/libavc
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  fuzzer/Android.bp
  test/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I3ad48ae634869eb3486d5c68962c992be83b2003
2021-02-14 10:37:21 -08:00
Anuj Joshi
6ce43b0dd7 Free input buffers only when released by encoder in avc_enc_fuzzer
Test: ./avc_enc_fuzzer
Bug: 172952772

Change-Id: I9d2eb407c73e289b7d88d47d87fb36b68b5dfc69
2021-01-12 10:10:48 +05:30
Sachin Kumar Garg
443b102698 Added avc_enc_fuzzer
Test: ./avc_enc_fuzzer
Bug: 170942938

Change-Id: I35ecdbad6bbd41684b81efe73a0f87f74e1ef8bb
2020-11-06 10:15:44 +05:30
Harish Mahendrakar
5a52ec8cdd Added fuzz_config field in avc_dec_fuzzer
Test: ./avc_dec_fuzzer
Bug: 157680018
Change-Id: Ia06f33596cacb8b5d856ff778135fc4a78e2fb66
2020-05-28 14:20:18 -07:00
Harish Mahendrakar
82b7f933f4 fuzzer: Updates to fuzzer plugin
Add support to configure architecture
Limit number of decode calls to 100
Avoid zero size allocations

Bug: 141574514
Test: ./avc_dec_fuzzer

Change-Id: I3a449a795e1d849424dafb00142d861988e5a0e4
2019-10-22 21:56:45 +00:00
Ray Essick
1dba4471e1 Merge "fuzzer: Create ossfuzz.sh to build with oss-fuzz" 2019-10-03 01:46:57 +00:00
Harish Mahendrakar
5f3bd1e37d fuzzer: Create ossfuzz.sh to build with oss-fuzz
fuzzer/ossfuzz.sh added to build libavc fuzzer target in oss-fuzz.
Bug: 140057362
Test: Build with oss-fuzz

Change-Id: I02265836d68cd28021ba7498fbf49b287efa3e41
2019-10-02 21:44:27 +00:00
Harish Mahendrakar
9aefe92778 Replace memalign with posix_memalign
Bug: 140696633
Test: Build and test binaries

Change-Id: I2a00a34347732eb91f2dc3514c4fa8fa5b5c51b5
2019-09-12 16:37:45 -07:00
Elliott Hughes
724246bc74 Fix macOS build.
There's no <malloc.h> on Darwin. Normally I'd say "prefer <stdlib.h>",
but in this case it looks like the code actually uses memalign. There
is no memalign on Darwin. You'll need to switch to posix_memalign if
you actually care about building this.

For now, the easiest is to just exclude macOS.

Test: treehugger
Change-Id: Id8a11cd141f5c4bd30ce95b61ac64759e17732fc
2019-09-08 13:20:07 -07:00
hamzeh
b5aa78cfcd Making liblog static in libavc fuzzer
Bug: 140244193
Test: SANITIZE_HOST=address make haiku-host and then running binary
Change-Id: I814739612b2d90923ebedc4a75d493f5d7bb15b5
2019-08-29 14:48:39 -07:00
Treehugger Robot
dcdaa5c232 Merge "decoder: Add host support" 2019-08-22 00:12:19 +00:00
Harish Mahendrakar
c7a2050496 Add README.md for fuzzer
Instructions to build fuzzer target are now in README.md

Bug: 139761244
Test: Review
Change-Id: Ie0eebac0508e45fc952b1e9cf2bb9b2a3df6b475
2019-08-21 00:22:52 +00:00
Harish Mahendrakar
cd79b679b1 decoder: Add avc_dec_fuzzer.dict
Bug: 139661751
Test: Review
Change-Id: Ibc84342643b5659e66885c7ca81cf51eec41c875
2019-08-19 09:08:32 -07:00
Harish Mahendrakar
41bd9cb168 decoder: Add host support
Test: Build libavcdec on host
Bug: 139379050
Change-Id: If81b01e3058e1ae42c8d266571a07deb39fbd603
2019-08-16 12:50:09 -07:00
Harish Mahendrakar
1cf2178de2 Added avc_dec_fuzzer
Test: ./avc_dec_fuzzer
Bug: 135629550

Change-Id: I6a7685873941b4680e53003e597a6785ca5584e5
2019-08-13 14:43:27 -07:00