1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 83cd7a29dc avcodec/ivi: Fix segfault on allocation error
If allocating the tiles array for indeo 4/5 fails, the context is in an
inconsistent state, because the counter for the number of tiles is > 0.
This will lead to a segfault when freeing the tiles' substructures.
Fix this by setting the number of tiles to zero if the allocation was
unsuccessful.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit e411a3af11e5d00a311f594a45c17f74898cb46e)
2021-02-27 07:20:57 +01:00
..
2020-05-27 22:13:39 +02:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2020-05-30 18:02:55 +02:00
2020-05-30 18:02:55 +02:00
2020-03-12 20:26:48 +00:00
2020-03-12 20:26:48 +00:00
2020-05-21 09:31:08 +02:00
2021-02-02 14:18:21 +01:00
2020-03-22 11:55:44 -03:00
2020-04-26 18:38:25 +01:00
2020-03-17 16:07:25 +01:00
2020-06-05 18:14:17 +02:00
2020-06-14 22:02:34 +02:00
2020-04-26 18:38:25 +01:00
2021-02-02 14:18:21 +01:00
2021-02-20 14:21:24 +01:00
2020-05-19 20:09:25 +02:00
2020-05-12 01:00:28 +02:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2020-06-14 22:02:34 +02:00
2020-06-08 20:45:56 +02:00
2020-05-30 18:02:55 +02:00
2020-07-09 12:35:39 +02:00
2020-04-26 18:38:25 +01:00
2020-04-04 23:26:15 +02:00
2020-05-22 22:23:18 +02:00
2021-02-02 14:18:20 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:20 +01:00
2021-02-02 14:18:20 +01:00
2020-06-08 01:22:34 +02:00
2020-04-26 18:38:25 +01:00
2020-04-16 15:05:07 -03:00
2020-03-22 11:55:44 -03:00
2020-05-23 07:07:36 +02:00