Jan Luebbe
3fd1b63453
gkeyfile: Fix overwriting of GError
...
When parsing a line of "key3=foo\i\" in a keyfile,
g_key_file_parse_value_as_string currently first sets the error to
'contains invalid escape' and later to 'contains escape character at end
of line'.
This leaks the first GError and causes the following warning message:
Error set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is
NULL before it's set. The overwriting error message was: Key file
contains escape character at end of line
Fix this by returning when an error is detected. As we may have
collected data in pieces, we instead collect to a tmp_pieces GSList and
free it on error.
2023-08-31 11:07:19 +01:00
..
2020-10-01 11:46:23 +01:00
2020-04-03 16:30:27 +02:00
2022-11-01 01:56:27 +01:00
2020-07-17 15:08:59 +01:00
2022-06-01 12:44:23 +01:00
2022-06-01 12:44:23 +01:00
2023-02-14 10:42:08 +00:00
2022-06-28 11:19:21 +01:00
2023-03-02 09:36:10 -05:00
2022-11-02 12:34:19 +00:00
2022-07-05 11:06:49 +00:00
2023-02-09 13:36:51 +00:00
2022-04-01 00:18:40 +01:00
2022-06-21 12:57:33 +01:00
2023-03-06 18:25:42 +00:00
2010-07-10 23:56:45 -04:00
2022-06-01 12:44:23 +01:00
2022-05-18 09:21:02 +01:00
2022-09-15 03:43:04 +02:00
2022-09-15 03:43:04 +02:00
2022-06-01 12:44:23 +01:00
2020-10-14 14:17:09 +02:00
2022-11-07 11:30:32 +00:00
2022-05-18 09:21:02 +01:00
2022-11-02 12:34:19 +00:00
2022-06-23 10:47:13 +01:00
2023-03-15 15:18:34 +08:00
2022-07-07 11:52:19 +00:00
2022-11-07 11:30:32 +00:00
2018-12-17 16:19:31 -05:00
2013-11-11 22:38:36 +08:00
2022-05-18 09:21:02 +01:00
2023-02-20 16:41:23 +00:00
2023-02-09 13:36:51 +00:00
2023-01-17 21:08:49 +01:00
2022-05-17 17:23:34 +01:00
2022-05-17 17:23:34 +01:00
2022-05-18 09:21:02 +01:00
2023-01-20 14:06:23 +01:00
2022-06-01 12:44:23 +01:00
2022-06-01 12:44:23 +01:00
2022-12-21 19:50:19 +00:00
2022-12-06 12:25:22 +01:00
2022-12-16 18:45:36 +01:00
2017-02-20 12:40:26 +01:00
2022-11-02 12:34:19 +00:00
2022-05-18 09:21:02 +01:00
2013-11-23 00:39:07 -05:00
2022-07-06 18:41:10 +02:00
2022-05-18 09:21:02 +01:00
2022-02-17 21:42:35 +00:00
2023-08-31 11:07:19 +01:00
2022-06-23 10:47:13 +01:00
2023-01-20 14:10:08 +01:00
2022-11-22 17:23:14 +01:00
2022-11-02 12:34:19 +00:00
2020-07-27 15:41:09 +01:00
2022-05-27 12:58:10 +01:00
2022-07-25 22:30:22 +01:00
2020-11-13 10:12:16 +01:00
2023-04-11 12:19:30 +01:00
2022-07-25 22:30:22 +01:00
2023-01-27 11:55:27 +03:00
2022-11-02 12:34:19 +00:00
2022-10-27 14:50:48 +01:00
2022-11-02 12:34:19 +00:00
2022-05-18 09:21:02 +01:00
2023-04-11 12:19:30 +01:00
2022-12-20 01:16:55 +01:00
2022-12-20 01:16:55 +01:00
2023-06-28 12:47:18 +01:00
2022-05-18 09:21:02 +01:00
2023-03-24 12:21:37 +00:00
2022-11-02 12:34:19 +00:00
2023-02-23 12:15:13 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-05-18 09:21:02 +01:00
2023-02-10 11:13:36 +00:00
2022-05-18 09:21:02 +01:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2023-03-16 12:05:07 +00:00
2022-11-02 12:34:19 +00:00
2022-05-18 09:21:02 +01:00
2022-11-02 12:34:19 +00:00
2022-06-23 10:47:13 +01:00
2022-05-18 09:21:02 +01:00
2023-01-11 12:14:04 +00:00
2022-05-18 09:21:02 +01:00
2022-11-02 12:34:19 +00:00
2022-06-23 10:47:13 +01:00
2022-01-25 20:18:41 +01:00
2022-10-24 21:33:18 +02:00
2022-05-18 09:21:02 +01:00
2023-01-25 13:49:09 +00:00
2020-03-05 09:39:33 +01:00
2022-05-18 09:21:02 +01:00
2022-11-08 12:30:53 +00:00
2022-05-18 09:21:02 +01:00
2022-05-18 14:01:43 +00:00
2022-12-13 14:49:23 +00:00
2021-01-28 18:37:45 +00:00
2023-01-20 14:06:23 +01:00
2023-02-21 16:34:31 +08:00
2023-03-20 10:43:25 +00:00
2023-02-16 11:29:26 +00:00
2022-11-02 12:34:19 +00:00
2022-06-28 11:19:21 +01:00
2022-11-07 11:30:32 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2023-01-20 14:10:08 +01:00
2023-01-20 15:28:58 +01:00
2022-05-06 10:50:40 +02:00
2022-10-17 10:56:24 +04:00
2022-11-02 12:34:19 +00:00
2023-01-10 12:48:32 +00:00
2022-05-27 12:58:10 +01:00
2022-11-02 12:34:19 +00:00
2022-05-18 09:21:02 +01:00
2022-05-18 09:21:02 +01:00
2022-04-04 18:51:30 +02:00
2022-04-29 08:02:56 +00:00
2023-03-15 15:14:53 +00:00
2022-11-02 09:06:34 -04:00
2022-06-21 12:50:31 +01:00
2022-11-02 12:34:19 +00:00
2022-06-21 12:57:33 +01:00
2022-05-18 09:21:02 +01:00
2022-05-18 09:21:02 +01:00
2022-04-04 18:51:30 +02:00
2022-12-19 21:37:19 +01:00
2023-02-13 16:12:07 +00:00
2022-11-02 12:34:19 +00:00