Andreas Rheinhardt
187cd27832
avutil/dict: Error out in case of key == NULL
...
Up until now, using NULL as key in av_dict_get() on a non-empty
AVDictionary would crash; using NULL as key in av_dict_set()
would also crash for a non-empty AVDictionary unless AV_DICT_MULTIKEY
was set; in case the dictionary was initially empty or AV_DICT_MULTIKEY
was set, it was even possible for av_dict_set() to succeed when
adding a NULL key, namely when one uses a value != NULL and
the AV_DICT_DONT_STRDUP_VAL flag. Using av_dict_get() on such
an AVDictionary will usually lead to crashes, though.
Fix this by actually checking for key in both functions; error out
if they are NULL.
While just at it, also stop relying on av_strdup(NULL) to return NULL
in av_dict_set().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-19 23:39:58 +02:00
..
2022-09-06 05:42:32 +02:00
2022-09-03 23:54:05 +03:00
2022-09-14 14:09:26 +02:00
2021-07-28 23:31:48 +02:00
2022-06-25 12:16:51 +02:00
2022-09-15 18:11:12 -03:00
2022-09-19 23:39:58 +02:00
2022-09-19 06:01:06 +02:00
2022-02-24 12:56:49 +01:00
2021-04-27 10:43:13 -03:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2021-01-20 01:02:56 -06:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-09-02 23:13:29 +03:00
2022-03-16 12:29:37 -03:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2021-03-05 19:45:00 +02:00
2022-05-23 13:52:26 +03:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-09-13 16:50:43 -03:00
2022-02-24 12:56:49 +01:00
2022-08-10 18:49:35 +02:00
2021-09-17 13:28:09 -03:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-07-04 14:04:54 -03:00
2022-03-15 09:42:47 -03:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-06-18 19:25:03 +02:00
2022-06-15 04:56:37 +02:00
2022-03-10 16:45:48 -03:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-06-01 13:52:38 -04:00
2022-06-01 13:52:38 -04:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2021-10-08 10:11:59 +08:00
2021-04-18 10:41:17 +08:00
2022-09-03 15:41:44 +02:00
2022-09-19 23:39:58 +02:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-01-04 11:59:02 +01:00
2022-01-04 11:59:02 +01:00
2019-06-01 17:43:48 +08:00
2021-09-20 01:03:52 +02:00
2022-02-24 12:56:49 +01:00
2021-07-29 22:02:05 +02:00
2021-02-10 12:28:29 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-09-05 08:59:36 +02:00
2022-09-03 15:41:44 +02:00
2022-09-03 15:41:44 +02:00
2022-09-03 15:42:40 +02:00
2022-09-03 15:42:40 +02:00
2020-11-25 23:06:33 +01:00
2021-08-24 09:58:52 -03:00
2022-06-15 04:56:37 +02:00
2022-02-24 12:56:49 +01:00
2022-08-19 22:09:36 +02:00
2022-08-19 22:09:36 +02:00
2022-06-15 04:56:37 +02:00
2022-08-02 10:44:37 +02:00
2022-08-02 10:44:37 +02:00
2022-06-21 13:27:46 +03:00
2022-08-19 22:09:36 +02:00
2022-08-19 22:09:36 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2022-03-01 09:08:43 +08:00
2022-03-01 09:08:43 +08:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2019-11-26 16:24:40 +01:00
2021-11-22 23:03:21 +01:00
2019-11-26 16:24:40 +01:00
2022-08-13 15:21:59 +02:00
2021-09-08 17:48:02 -03:00
2020-12-30 23:14:46 +01:00
2021-11-13 19:22:57 +01:00
2022-01-05 11:56:58 +08:00
2022-08-12 10:43:39 +08:00
2022-09-07 14:04:12 +08:00
2022-08-12 10:43:39 +08:00
2022-07-05 15:20:08 +02:00
2022-09-03 16:19:40 -07:00
2021-04-27 10:43:13 -03:00
2022-04-29 17:27:37 +08:00
2022-08-08 11:08:55 +08:00
2022-09-03 16:19:40 -07:00
2021-12-10 17:04:22 +01:00
2022-02-17 11:05:44 +01:00
2022-02-17 11:05:44 +01:00
2021-08-14 00:27:43 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-09-03 15:42:57 +02:00
2022-09-13 16:50:43 -03:00
2022-09-15 20:56:23 +05:30
2022-06-15 04:56:37 +02:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2021-07-21 16:35:27 +02:00
2021-07-21 16:35:27 +02:00
2021-07-29 22:02:05 +02:00
2022-08-13 14:42:36 +02:00
2022-02-24 12:56:49 +01:00
2021-10-21 14:13:03 +02:00
2021-10-02 17:13:57 +02:00
2021-07-22 14:34:31 +02:00
2022-08-24 03:43:52 +02:00
2022-07-06 22:53:15 +02:00
2022-05-26 17:18:23 +08:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-12-18 11:55:47 -08:00
2022-08-03 21:09:24 +02:00
2022-03-15 09:42:29 -03:00
2022-01-12 13:42:26 +08:00
2022-09-17 15:11:13 -07:00
2022-09-17 15:11:13 -07:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-09-03 16:19:40 -07:00
2022-02-24 12:56:49 +01:00
2022-09-03 15:41:44 +02:00
2020-05-23 15:51:44 +02:00
2020-05-23 15:51:44 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-09-06 18:46:44 +03:00
2019-07-21 11:26:36 +02:00
2021-02-28 17:14:21 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2020-12-28 01:12:26 -03:00
2022-04-22 22:54:58 +02:00
2020-12-03 18:32:54 +01:00
2022-09-13 16:50:43 -03:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2019-08-02 01:19:52 +01:00
2019-08-02 01:19:52 +01:00
2020-02-13 17:10:34 +00:00
2022-09-06 04:21:46 +02:00
2022-09-11 03:18:40 +02:00
2022-09-10 02:37:11 +02:00
2022-02-11 19:38:41 +01:00
2022-05-10 06:49:32 +02:00
2022-06-12 18:34:28 +10:00
2022-06-12 18:34:28 +10:00
2022-03-17 11:11:17 +02:00
2022-05-10 06:49:32 +02:00
2022-09-17 15:11:13 -07:00
2022-02-24 12:56:49 +01:00
2021-01-01 14:23:19 +01:00
2022-01-27 10:27:09 +01:00
2021-11-19 16:47:48 +01:00
2021-11-18 06:40:52 +01:00
2021-11-19 16:47:30 +01:00
2022-02-22 06:30:12 +01:00
2021-11-19 16:47:28 +01:00
2022-06-28 10:59:31 +02:00
2022-02-24 12:56:49 +01:00