Unverified Commit e8b6fa5f authored by DavidKorczynski's avatar DavidKorczynski Committed by GitHub
Browse files

[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: default avatarDavid Korczynski <david@adalogics.com>
parent 1022febd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment