Open cmazakas opened 7 months ago
The code used to calculate theoretical allocated header maximums lacks guards for overflow.
For example, if offset_type is u32 then u32::max as max_offset is problematic when used to allocate the header.
offset_type
u32
u32::max
The code used to calculate theoretical allocated header maximums lacks guards for overflow.
For example, if
offset_type
isu32
thenu32::max
as max_offset is problematic when used to allocate the header.