[FFmpeg-devel] [PATCH] avcodec/hevcdec: check that the local context list exists before dereferencing it

Nuo Mi nuomi2021 at gmail.com
Thu Feb 11 17:08:19 EET 2021


hevcdec and pthread_slice has some memory manage issues.
1. hls_slice_data_wpp did not check the return value of ff_alloc_entries
and av_malloc.
2. ff_alloc_entries did not check the return value of pthread_cond_init
and pthread_mutex_init
2. Even hls_slice_data_wpp return some error for memory allocation
failed, decode_nal_unit may ignore the return value at the end, We need
carefully handle the half created arrays/memory.


More information about the ffmpeg-devel mailing list