libavc/decoder
Ashwin Natesan 37beb97292 mvcdec: Fixed heap overflow during SEI parsing
There can be cases where there are multiple SEI payloads within a
single SEI NAL. In the particulkar case where the payload comprises
exclusiely of FGC data, the size of the NAL can exceed the size
of the 'dynamic bitstream buffer' which is used to pass the NALU
onto its appropriate parser.

This commit adds 'imvcd_bitstream_buf_realloc' which re-allocates
the 'dynamic bitstream buffer' such that any arbitrarily sized
NALU can be stored without a heap overflow.

Bug = ossfuzz:64286
Test: svc_enc_fuzzer
2023-11-21 06:02:14 -08:00
..
arm formatting changes 2023-02-08 07:55:47 -08:00
mvc mvcdec: Fixed heap overflow during SEI parsing 2023-11-21 06:02:14 -08:00
riscv SVC decoder support 2023-02-08 07:55:47 -08:00
svc Correct comment spelling error. 2023-08-11 15:54:38 -07:00
x86 formatting changes 2023-02-08 07:55:47 -08:00
ih264d.h decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable 2023-07-22 09:51:37 -07:00
ih264d_api.c decoder: join threads in flush mode 2023-09-25 08:47:41 -07:00
ih264d_api_utils.h Decoder: MVC decoding support added 2022-08-06 05:51:31 +00:00
ih264d_bitstrm.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_bitstrm.h Decoder: Fix heap buffer overflow. 2020-07-29 23:47:11 +00:00
ih264d_cabac.c Decoder: Fix heap buffer overflow. 2020-07-29 23:47:11 +00:00
ih264d_cabac.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_cabac_init_tables.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_compute_bs.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_deblocking.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_deblocking.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_debug.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_defs.h Decoder: add support for QP and block_type map export in library 2022-05-17 09:55:20 +05:30
ih264d_dpb_manager.h Decoder: Fix NPD issue in mmco function 2020-09-16 17:07:13 +05:30
ih264d_dpb_mgr.c Decoder: add support for QP and block_type map export in library 2022-05-17 09:55:20 +05:30
ih264d_error_handler.h libavc: Add support for FGC SEI message 2023-02-21 12:36:55 -08:00
ih264d_format_conv.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_format_conv.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_function_selector.h Remove an unused and unnecessary function prototype and associated define 2015-06-25 08:25:51 -07:00
ih264d_function_selector_generic.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_inter_pred.c Decoder: Fixes for handling errors in multi-slice MB Aff streams 2016-09-22 18:19:55 +00:00
ih264d_inter_pred.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_mb_utils.c Decoder: add support for QP and block_type map export in library 2022-05-17 09:55:20 +05:30
ih264d_mb_utils.h Decoder: add support for QP and block_type map export in library 2022-05-17 09:55:20 +05:30
ih264d_mem_request.h Decoder: Reduced memory requirements 2015-09-23 18:35:27 +00:00
ih264d_mvpred.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_mvpred.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_nal.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_nal.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_bslice.c cmake: Set C standard to C90 and move few macros to specific targets 2022-08-30 20:00:54 +00:00
ih264d_parse_cabac.c Decoder: Fix integer sanitizer issues in ih264d_parse_cabac 2019-03-28 14:40:27 -07:00
ih264d_parse_cabac.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_cavlc.c Decoder: Fix Integer Sanitizer Issues in ih264d_parse_cavlc 2019-03-28 14:40:34 -07:00
ih264d_parse_cavlc.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_headers.c Fix formatting in FGC commit 2023-02-21 12:36:55 -08:00
ih264d_parse_headers.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_islice.c cmake: Set C standard to C90 and move few macros to specific targets 2022-08-30 20:00:54 +00:00
ih264d_parse_islice.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_mb_header.c Decoder: Remove unnecssary optimization while setting MV context 2016-11-24 12:20:42 +05:30
ih264d_parse_mb_header.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_pslice.c decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable 2023-07-22 09:51:37 -07:00
ih264d_parse_slice.c decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable 2023-07-22 09:51:37 -07:00
ih264d_parse_slice.h Decoder: Delete node from st if lt and st point to same 2019-06-12 09:54:49 +00:00
ih264d_process_bslice.c Decoder: Fix integer overflow when scaling motion vectors 2020-09-18 22:59:16 +05:30
ih264d_process_bslice.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_process_intra_mb.c Decoder: Initialize some array and structure to zero 2018-11-01 14:35:05 -07:00
ih264d_process_intra_mb.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_process_pslice.c Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-27 10:16:27 -07:00
ih264d_process_pslice.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_quant_scaling.c Added error check while parsing scaling_list 2019-07-22 13:55:21 -07:00
ih264d_quant_scaling.h Added error check while parsing scaling_list 2019-07-22 13:55:21 -07:00
ih264d_sei.c Fix formatting in FGC commit 2023-02-21 12:36:55 -08:00
ih264d_sei.h Fix formatting in FGC commit 2023-02-21 12:36:55 -08:00
ih264d_structs.h decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable 2023-07-22 09:51:37 -07:00
ih264d_tables.c Decoder: Padded gau1_ih264d_top_left_mb_part_indx_mod to avoid an out of bound read 2017-01-17 16:12:12 -08:00
ih264d_tables.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_thread_compute_bs.c decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable 2023-07-22 09:51:37 -07:00
ih264d_thread_compute_bs.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_thread_parse_decode.c decoder: replace KEEP_THREADS_ACTIVE macro with avc decoder struct variable 2023-07-22 09:51:37 -07:00
ih264d_thread_parse_decode.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_transfer_address.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_utils.c libavcdec: Fix timeout issue in AVC Decoder 2023-11-14 21:03:25 -08:00
ih264d_utils.h Decoder: Reduced memory requirements 2015-09-23 18:35:27 +00:00
ih264d_vui.c Decoder: Return error for invalid vui parameter 2018-04-19 10:38:25 -07:00
ih264d_vui.h VUI header file changes 2023-02-08 07:55:47 -08:00
iv.h Decoder: Reduced memory requirements 2015-09-23 18:35:27 +00:00
ivd.h Updates to Android.bp and some formatting fixes 2023-03-08 20:27:18 -08:00
libavcdec.cmake Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30