mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 22:08:41 +00:00
fix off-by-one in inline site decode
This commit is contained in:
@@ -193,7 +193,7 @@ cv_decode_inline_annot_u32(String8 data, U64 offset, U32 *out_value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 2 bytes
|
// 2 bytes
|
||||||
else if((header & 0xC0) == 0x80 && cursor+2 <= data.size)
|
else if((header & 0xC0) == 0x80 && cursor+1 <= data.size)
|
||||||
{
|
{
|
||||||
U8 second_byte;
|
U8 second_byte;
|
||||||
cursor += str8_deserial_read_struct(data, cursor, &second_byte);
|
cursor += str8_deserial_read_struct(data, cursor, &second_byte);
|
||||||
|
|||||||
Reference in New Issue
Block a user