diff options
author | Thomas Lively <tlively@google.com> | 2022-12-14 12:13:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 18:13:54 +0000 |
commit | 974e63d07f92c3042211249f58e738a665ac173f (patch) | |
tree | 03ec226a745b843f2738f790d604b429b4ddab1c /scripts/clang-format-diff.sh | |
parent | 0668d9328ad57100103d6b59f40de513659e1c6b (diff) | |
download | binaryen-974e63d07f92c3042211249f58e738a665ac173f.tar.gz binaryen-974e63d07f92c3042211249f58e738a665ac173f.tar.bz2 binaryen-974e63d07f92c3042211249f58e738a665ac173f.zip |
Fix OOB string_view read in generated parser code (#5349)
The `op` string_view was intentionally created to point into the `buf` buffer so
that reading past its end would still be safe, but some C++ standard library
implementations assert when reading past the end of a string_view. Change the
generated code to read out of `buf` instead to avoid those assertions.
Fixes #5322.
Fixes #5342.
Diffstat (limited to 'scripts/clang-format-diff.sh')
0 files changed, 0 insertions, 0 deletions