commit | f9ce75bf1830d5488211ede06be71d08c694dcf3 | [log] [tgz] |
---|---|---|
author | Vedant Kumar <vsk@apple.com> | Mon Oct 23 18:04:34 2017 +0000 |
committer | Vedant Kumar <vsk@apple.com> | Mon Oct 23 18:04:34 2017 +0000 |
tree | 86ae4e7be4869a49d38d0b7029d8d16d527b0866 | |
parent | 3e1218f32a495fcfcded23b167f9d39cb01b0655 [diff] |
[wasm] readSection: Avoid reading past eof (fixes oss-fuzz #3219) A wasm file crafted with a bogus section size can trigger an ASan issue in the DWARFObjInMemory constructor. Nip the problem in the bud when we read the wasm section. Found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3219 Differential Revision: https://reviews.llvm.org/D38777 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316357 91177308-0d34-0410-b5e6-96231b3b80d8