diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-18 17:31:44 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-18 17:31:44 -0800 |
commit | 8c19c7eefe4980cfba39e835fd6ab7bb95c3f9ad (patch) | |
tree | 3338da18e388129c6d8ed0cb812bc6ba3e79fdf6 /src | |
parent | 884b9f8a688766e08907431cd6759bfaa89399dc (diff) | |
download | binaryen-8c19c7eefe4980cfba39e835fd6ab7bb95c3f9ad.tar.gz binaryen-8c19c7eefe4980cfba39e835fd6ab7bb95c3f9ad.tar.bz2 binaryen-8c19c7eefe4980cfba39e835fd6ab7bb95c3f9ad.zip |
be more careful about parsing s-expression comments
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-s-parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index deeaba155..6061dacc5 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -153,7 +153,7 @@ private: while (1) { while (isspace(input[0])) input++; if (input[0] == ';' && input[1] == ';') { - while (input[0] != '\n') input++; + while (input[0] && input[0] != '\n') input++; } else if (input[0] == '(' && input[1] == ';') { input = strstr(input, ";)") + 2; } else { |