Jonas Devlieghere b42f11290d [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
2018-08-08 16:34:03 +00:00
..
2018-04-30 19:08:16 +00:00
2017-08-15 20:29:24 +00:00
2015-08-06 20:05:27 +00:00
2017-06-05 21:45:25 +00:00
2017-06-05 21:45:25 +00:00
2016-02-16 15:16:00 +00:00