diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-08-08 16:34:03 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-08-08 16:34:03 +0000 |
| commit | 8511777d3a41e5198a7028711754d3e9c29afddc (patch) | |
| tree | 01199be05c675f202346c8f6215297eecb8acabf /llvm/test/Object/Inputs/WASM | |
| parent | caacedb03e95fb02cad30b0d53eb52494a543674 (diff) | |
| download | bcm5719-llvm-8511777d3a41e5198a7028711754d3e9c29afddc.tar.gz bcm5719-llvm-8511777d3a41e5198a7028711754d3e9c29afddc.zip | |
[WASM] Fix overflow when reading custom section
When reading a custom WASM section, it was possible that its name
extended beyond the size of the section. This resulted in a bogus value
for the section size due to the size overflowing.
Fixes heap buffer overflow detected by OSS-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8190
Differential revision: https://reviews.llvm.org/D50387
llvm-svn: 339269
Diffstat (limited to 'llvm/test/Object/Inputs/WASM')
| -rw-r--r-- | llvm/test/Object/Inputs/WASM/string-outside-section.wasm | bin | 0 -> 131 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/WASM/string-outside-section.wasm b/llvm/test/Object/Inputs/WASM/string-outside-section.wasm Binary files differnew file mode 100644 index 00000000000..56877704cfb --- /dev/null +++ b/llvm/test/Object/Inputs/WASM/string-outside-section.wasm |

