mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-29 00:53:20 -08:00
fix off-by-one in inline site decode
This commit is contained in:
1 parent
687323fc2e
commit
95d31f5608
1 file changed
+1
-1
@@ -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