FFmpeg/libavformat
Andreas Rheinhardt dc0c981850 avformat/id3v2: Fix double-free on error
ff_id3v2_parse_priv_dict() uses av_dict_set() with the flags
AV_DICT_DONT_STRDUP_KEY and AV_DICT_DONT_STRDUP_VAL. In this case both
key and value are freed on error (and owned by the destination
dictionary on success), so that freeing them again on error is a
double-free and therefore forbidden. But it nevertheless happened.

Fixes CID 1452489 and 1452421.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 67d4940a7795aa3afc8d1e624de33b030e0be51e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-07-01 13:33:43 +02:00
..
2018-04-05 22:04:30 +01:00
2017-03-29 14:49:29 +02:00
2017-10-05 17:10:23 +02:00
2017-02-01 02:57:40 +01:00
2017-10-19 22:07:21 +02:00
2017-09-20 03:31:48 +02:00
2017-10-19 22:07:21 +02:00
2017-09-01 18:52:56 +08:00
2017-08-30 12:13:01 +02:00
2018-04-16 14:12:48 -03:00
2017-02-11 20:20:07 +01:00
2019-03-21 10:42:52 +01:00
2018-04-12 16:04:58 +08:00
2017-10-05 17:10:23 +02:00
2018-04-02 03:26:22 +01:00
2018-04-12 16:04:58 +08:00
2018-04-05 22:04:30 +01:00
2017-04-20 15:39:18 +00:00
2018-04-01 21:08:16 +02:00
2017-11-05 10:42:07 +01:00
2017-12-08 16:01:09 +01:00
2017-03-30 13:26:04 +02:00
2016-11-07 00:51:49 +01:00
2017-10-05 17:10:23 +02:00
2017-06-13 19:49:06 +02:00
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2017-04-25 15:39:10 +02:00
2018-02-11 20:03:33 +01:00
2018-03-07 22:26:53 +01:00
2017-01-30 11:00:58 +01:00
2017-09-09 12:07:14 +02:00
2017-12-31 16:14:23 +01:00
2019-11-11 20:18:45 +01:00
2019-11-11 20:18:46 +01:00
2019-11-11 20:18:46 +01:00
2019-11-11 20:18:46 +01:00