aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-01 10:56:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-20 00:24:23 +0200
commit2980fb5704654af3decd99c3c16b9622fc6c3463 (patch)
tree394f5e15606dd57a53275efaf199422c22b9cf70 /libavformat/utils.c
parenteae4b6142223d6f214b97c00bc498884f3b98065 (diff)
downloadffmpeg-2980fb5704654af3decd99c3c16b9622fc6c3463.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> (cherry picked from commit 710ab136931ff228b355d87512b0d4ca4e94656a)
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions