mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
patterns/ip: Fix payload size when ip header or tcp header has options in ip.hexpat (#178)
This commit is contained in:
@@ -132,7 +132,7 @@ namespace ip {
|
||||
if (flags.data_offset > 5)
|
||||
u8 options[(flags.data_offset - 5) * sizeof(u32)];
|
||||
|
||||
u8 data[parent.parent.header.total_length - 40];
|
||||
u8 data[parent.parent.header.total_length - parent.parent.header.ihl * 4 - flags.data_offset * 4];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user