diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-01 10:56:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-03 09:50:00 +0100 |
commit | 710ab136931ff228b355d87512b0d4ca4e94656a (patch) | |
tree | 7f062d8be54435f40da8e0a3674af327dc874b9b /libavdevice/libdc1394.c | |
parent | 968c4cbf22813b203b77e9144164abff914234e6 (diff) | |
download | ffmpeg-710ab136931ff228b355d87512b0d4ca4e94656a.tar.gz |
avfilter/vf_unsharp: Don't dereference NULL
The unsharp filter uses an array of arrays of uint32_t, each of which is
separately allocated. These arrays also need to freed separately; but
before doing so, one needs to check whether the array of arrays has
actually been allocated, otherwise one would dereference a NULL pointer.
This fixes #8408.
Furthermore, the array of arrays needs to be zero-initialized so that
no uninitialized pointer will be freed in case an allocation of one of
the individual arrays fails.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice/libdc1394.c')
0 files changed, 0 insertions, 0 deletions