Berthold Stoeger 71f573da2a git: return strdup()ed empty string on error in pop_cstring
The pop_cstring() function is used by the git parser to
duplicate a quoted string. On error, it returns an empty
string literal. Since the caller expects a copied string
and takes ownership of that string, it will ultimately
be freed.

Concrete example: a log with erroneous cylinder data was opened
getting such an empty string literal as description. On closing or
syncing with the cloud, the dive is freed, leading to a free
of the string literal -> crash.

Return a copy of the empty string instead.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-03-16 10:57:12 -07:00
..
2020-03-01 10:21:44 -08:00
2019-09-27 16:26:58 -07:00
2019-08-08 08:56:44 -07:00
2019-08-08 16:26:31 -07:00
2019-08-08 16:26:31 -07:00
2020-03-10 09:25:57 -07:00
2017-04-29 13:32:55 -07:00
2019-08-11 08:20:38 +02:00
2018-10-21 19:55:09 +03:00
2020-01-24 09:51:02 -08:00
2020-03-01 10:21:44 -08:00
2019-11-28 12:23:04 -08:00
2020-01-27 09:51:31 -08:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2019-11-09 19:19:04 +01:00