aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-24 16:10:16 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-04 23:58:57 +0200
commit2f59648aed8ba538e2ff3cd7edcb85f4501faa25 (patch)
treee95f0acbb236593707aca7c427ebf779931009c8 /libavcodec/hevc_ps.h
parenta4800643bba40cf8461406aa078da93e42e6ea6c (diff)
downloadffmpeg-2f59648aed8ba538e2ff3cd7edcb85f4501faa25.tar.gz
avcodec/wavpack: Fix leak and segfault on reallocation error
av_realloc_f() frees the buffer it is given on allocation failure. But in this case, the buffer is an array of ownership pointers, causing leaks on error. Furthermore, the count of pointers is unchanged on error and the codec's close function uses it to free said ownership pointers, causing a NPD. This is a regression since 46412a8935e4632b2460988bfce4152c7dccce22. Fix this by switching to av_realloc_array(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/hevc_ps.h')
0 files changed, 0 insertions, 0 deletions