aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDavidKorczynski <david@adalogics.com>2023-12-26 21:32:13 +0000
committerGitHub <noreply@github.com>2023-12-26 13:32:13 -0800
commite8b6fa5f301de4688b7a4bd6c41d30f29f0e2ddd (patch)
tree81a00bc72140a592d147e5531e89f488ab5bdc84 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent1022febd9df30abbd5c490b94290c4422ca15b01 (diff)
downloadllvm-e8b6fa5f301de4688b7a4bd6c41d30f29f0e2ddd.zip
llvm-e8b6fa5f301de4688b7a4bd6c41d30f29f0e2ddd.tar.gz
llvm-e8b6fa5f301de4688b7a4bd6c41d30f29f0e2ddd.tar.bz2
[WebAssembly] Add bounds check in parseCodeSection (#76407)
This is needed as otherwise `Ctx.Ptr` will be incremented to a position outside it's available buffer, which is being used to read values e.g. https://github.com/llvm/llvm-project/blob/966d564e43e650b9c34f9c67829d3947f52add91/llvm/lib/Object/WasmObjectFile.cpp#L1469 Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28856 Signed-off-by: David Korczynski <david@adalogics.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions