commit | 7689b8dd09adfdd0655081423a5d91f1940db2e1 | [log] [tgz] |
---|---|---|
author | Jonas Devlieghere <jonas@devlieghere.com> | Wed Aug 08 16:34:03 2018 +0000 |
committer | Jonas Devlieghere <jonas@devlieghere.com> | Wed Aug 08 16:34:03 2018 +0000 |
tree | 96aa3817320e6bf35676c19600f8ed2477ad9fac | |
parent | 86e6f59695ef0efa3960c19a4b0f2c1f6c7b56c1 [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339269 91177308-0d34-0410-b5e6-96231b3b80d8