mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
<tup> tor segfaults when reading a config value that contains a malformed
escape sequence; this patch fixes it svn:r13086
This commit is contained in:
parent
f033bd062f
commit
8ba1ba7d81
@ -2060,7 +2060,8 @@ parse_config_line_from_str(const char *line, char **key_out, char **value_out)
|
||||
|
||||
/* Find the end of the line. */
|
||||
if (*line == '\"') {
|
||||
line = unescape_string(line, value_out, NULL);
|
||||
if (!(line = unescape_string(line, value_out, NULL)))
|
||||
return NULL;
|
||||
while (*line == ' ' || *line == '\t')
|
||||
++line;
|
||||
if (*line && *line != '#' && *line != '\n')
|
||||
|
Loading…
Reference in New Issue
Block a user