FFmpeg/libavfilter
Andreas Rheinhardt 710ab13693 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>
2019-12-03 09:50:00 +01:00
..
2019-08-23 00:56:13 +01:00
2019-10-23 16:20:21 +02:00
2019-10-01 14:55:43 +02:00
2019-05-14 15:17:14 +02:00
2017-11-26 14:05:25 +01:00
2019-11-23 11:54:20 +01:00
2019-11-21 21:26:12 +01:00
2019-10-14 15:02:20 -08:00
2018-11-15 14:44:24 +01:00
2018-06-21 00:31:42 +01:00
2019-10-18 10:54:05 +02:00
2018-05-05 21:50:22 +02:00
2019-11-23 11:54:20 +01:00
2019-10-02 21:05:25 +02:00
2019-10-23 12:37:46 +02:00
2019-09-30 16:39:39 +02:00
2019-09-25 13:06:30 +02:00
2019-11-23 11:54:20 +01:00
2019-07-28 22:34:33 +01:00
2018-06-21 00:31:42 +01:00
2019-05-11 20:16:45 +02:00
2019-10-01 14:55:43 +02:00
2019-09-26 08:10:31 +08:00
2019-04-20 00:20:07 +02:00
2019-10-14 10:56:20 +02:00
2018-08-16 00:07:59 +02:00
2019-11-01 14:43:16 +01:00
2019-10-18 21:57:20 +02:00
2019-05-24 18:37:41 +02:00
2019-09-27 10:58:30 +02:00
2019-10-20 18:06:26 +02:00
2019-09-25 21:48:59 +02:00
2017-12-23 10:48:14 +01:00