libhevc-mirror/decoder
Harish Mahendrakar 052d028555 Fix heap-buffer-overflow in HBD padding due to bit depth change.
Trigger IVD_RES_CHANGED when bit depth or chroma format changes in SPS,
forcing reallocation of picture buffers.

To prevent corrupting the codec state on invalid SPS parses, the updates to
global codec parameters (like i4_pixel_size_y and i4_bit_depth_luma) are
deferred to the end of ihevcd_parse_sps, after all validation checks have
passed. The resolution change check now compares the old active values in
ps_codec against the newly parsed values in the temporary ps_sps structure.

TAG=agy
CONV=2aef6402-f7fc-4ff8-ba56-d78e01754035
2026-08-07 03:21:32 +00:00
..
arm Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
arm64 Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
riscv64 Include ihevcd_defs.h and ihevcd_structs.h in risc function selector 2026-06-22 20:01:44 -07:00
x86 Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_api.c libhevcdec: Add support for extended profile parsing from SPS headers 2026-08-07 03:21:32 +00:00
ihevcd_bitstream.c use unsigned word type in ihevcd_bits_seek to avoid signed shift ub 2026-07-06 21:28:17 -07:00
ihevcd_bitstream.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_boundary_strength.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_boundary_strength.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_cabac.c hevcdec: add support for persistent rice adaptation flag 2026-03-16 10:03:26 -07:00
ihevcd_cabac.h hevcdec: add support for persistent rice adaptation flag 2026-03-16 10:03:26 -07:00
ihevcd_common_tables.c hevcdec: update lib for chroma format idc 422 2026-03-04 15:39:55 -08:00
ihevcd_common_tables.h hevcdec: update lib for chroma format idc 422 2026-03-04 15:39:55 -08:00
ihevcd_cxa.h libhevcdec: Add support for extended profile parsing from SPS headers 2026-08-07 03:21:32 +00:00
ihevcd_deblk.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_deblk.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_debug.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_decode.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_decode.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_defs.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_error.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_fmt_conv.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_fmt_conv.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_func_types.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_function_selector.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_function_selector_generic.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_get_mv.c fix oob top-left pu-map read in ihevcd_get_mv_ctb 2026-07-14 07:25:34 -07:00
ihevcd_get_mv.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_hbd_func_tables.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_hbd_func_tables.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_ilf_padding.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_inter_pred.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_inter_pred.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_intra_pred_mode_prediction.c libhevc: Direct memcpy and memset calls to enable _FORTIFY_SOURCE 2026-06-18 06:44:56 -07:00
ihevcd_intra_pred_mode_prediction.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_iquant_itrans_recon_ctb.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_iquant_itrans_recon_ctb.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_itrans_recon_dc.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_itrans_recon_dc.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_ittiam_logo.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_job_queue.c Source files clean up 2014-07-12 15:09:24 -07:00
ihevcd_job_queue.h Source files clean up 2014-07-12 15:09:24 -07:00
ihevcd_mv_merge.c Reduced memory requirements 2015-10-09 11:44:26 -07:00
ihevcd_mv_merge.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_mv_pred.c Source files clean up 2014-07-12 15:09:24 -07:00
ihevcd_mv_pred.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_nal.c libhevc: move SEI related code under a macro 2024-05-07 10:07:49 -07:00
ihevcd_nal.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_parse_headers.c Fix heap-buffer-overflow in HBD padding due to bit depth change. 2026-08-07 03:21:32 +00:00
ihevcd_parse_headers.h libhevc: move SEI related code under a macro 2024-05-07 10:07:49 -07:00
ihevcd_parse_residual.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_parse_residual.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_parse_slice.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_parse_slice.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_parse_slice_header.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_parse_slice_header.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_process_slice.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_process_slice.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_profile.h Source files clean up 2014-07-12 15:09:24 -07:00
ihevcd_ref_list.c Decoder: Fix integer-overflow sanitizer issues 2019-01-09 13:16:37 -08:00
ihevcd_ref_list.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_sao.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_sao.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_statistics.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_structs.h Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_trace.h Initial Version of HEVC decoder 2014-05-21 18:14:55 -07:00
ihevcd_utils.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
ihevcd_utils.h libhevcdec: disable simd optimizations during 422/444 decoding. 2026-05-07 07:00:35 -07:00
ihevcd_version.c Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
libhevcdec.cmake Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00