diff options
author | Thomas Lively <tlively@google.com> | 2022-12-02 16:29:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 14:29:49 -0800 |
commit | 6658a66e6330f25105f0dca7241e520cffb8c3eb (patch) | |
tree | 2d49e0759b5b34ba93fe133da081f113403f7a9b /test/lit/help | |
parent | 49f89749862749e4571983cac971ffb798d30c99 (diff) | |
download | binaryen-6658a66e6330f25105f0dca7241e520cffb8c3eb.tar.gz binaryen-6658a66e6330f25105f0dca7241e520cffb8c3eb.tar.bz2 binaryen-6658a66e6330f25105f0dca7241e520cffb8c3eb.zip |
[NFC] Do not read past the end of a string_view (#5317)
wasm-s-parser.cpp was detecting the end of type strings by looking for null
characters, but those null characters would be past the end of the relevant
string_view. Bring that code in line with similar code by checking the length of
the string_view instead. Fixes an assertion failure in MSVC debug mode.
Fixes #5312.
Diffstat (limited to 'test/lit/help')
0 files changed, 0 insertions, 0 deletions