diff options
author | Heejin Ahn <aheejin@users.noreply.github.com> | 2016-08-05 08:41:48 -0700 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2016-08-05 08:41:48 -0700 |
commit | 49b99e6675424ff0866a670ed83f2393330198dd (patch) | |
tree | 28cbf686628df7d46f05574faaa20921cb77af22 /src/wasm.cpp | |
parent | e8da13d1e4d0b553ef103d196e83a93f0e64ed8a (diff) | |
download | binaryen-49b99e6675424ff0866a670ed83f2393330198dd.tar.gz binaryen-49b99e6675424ff0866a670ed83f2393330198dd.tar.bz2 binaryen-49b99e6675424ff0866a670ed83f2393330198dd.zip |
Fix a parsing bug introduced by #615 (#661)
Name lhs = getStrToSep();
if (!skipEqual()){
s = strchr(s, '\n');
if (!s) break;
continue;
}
The above code snippet introduced by #615 has a bug when there is only
one word (e.g. ".text") in a line. If there is only one word in a line,
skipEqual() also skips the newline character at the end of the line, and
strchr(s, '\n') moves the cursor to the end of the next line,
effectively skipping the whole next line.
Diffstat (limited to 'src/wasm.cpp')
0 files changed, 0 insertions, 0 deletions