blob: 25a094a23b78213e67d63bcc3ada87d0993240eb [file] [log] [blame]
Fix for https://crbug.com/988024.
--- src/util/profile/prof_parse.c
+++ src/util/profile/prof_parse.c
@@ -50,6 +50,8 @@ static void parse_quoted_string(char *str)
for (to = from = str; *from && *from != '"'; to++, from++) {
if (*from == '\\') {
from++;
+ if (!*from)
+ break;
switch (*from) {
case 'n':
*to = '\n';