diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-s-parser.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 58f316075..969175f8a 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -183,8 +183,12 @@ private: bool quoted = false; if (input[0] == '"') { quoted = true; - start++; - input = strchr(start, '"'); + while (1) { + start++; + input = strchr(start, '"'); + assert(input); + if (input[-1] != '\\') break; + } assert(input); input++; } else { |