Files
llvm-project/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
Nikhil Kalra 8106c816eb [MLIR][Bytecode] Enforce alignment requirements (#157004)
Adds a check that the bytecode buffer is aligned to any section
alignment requirements. Without this check, if the source buffer is not
sufficiently aligned, we may return early when aligning the data
pointer. In that case, we may end up trying to read successive sections
from an incorrect offset, giving the appearance of invalid bytecode.

This requirement is documented in the bytecode unit tests, but is not
otherwise documented in the code or bytecode reference.
2025-09-04 22:31:40 -07:00

100 KiB