Files
flatbuffers-bigfoot/include/flatbuffers
Rifat Al Jubayer a6979fe14a Fix logic inversion in FlexBuffers VerifyKey() (#9072)
VerifyKey() returns true on the first non-zero byte instead of
checking for a null terminator. This causes VerifyBuffer() to accept
FlexBuffers with non-null-terminated keys. Subsequent access to those
keys via strlen()/strcmp() reads out of bounds.

The condition if (*p++) should be if (!*p++) — return true
when a null terminator is found, not when any non-zero byte is found.

Confirmed with AddressSanitizer: heap-buffer-overflow in strlen()
after VerifyBuffer() returns true on a corrupted buffer.
2026-05-04 22:11:30 -04:00
..
2025-09-23 21:50:27 -07:00
2025-12-19 10:42:57 -08:00
2025-12-19 15:06:07 -08:00
2025-11-24 07:11:32 -05:00
2025-12-19 14:32:51 -08:00
2025-12-03 04:37:06 +00:00
2025-12-19 10:42:57 -08:00