Skip to content

src: fix out-of-bounds check of serialization indices

The usage of CHECK_LE to verify that the index is within bounds of a vector's size allows for reading one item past the vector's end, which is in invalid memory read. This commit fixes the off-by-one error by changing the bounds check to use CHECK_LT.

Merge request reports

Loading