Closed HeeillWang closed 8 months ago
I executed fuzz testing on http-0.2.9, and found some arithmetic overflow.
http-0.2.9
#[inline] fn to_raw_capacity(n: usize) -> usize { n + n / 3 // overflow! }
reproduce with :
HeaderMap::<u32>::with_capacity(17798225791641714878); // put some big number here
I executed fuzz testing on
http-0.2.9
, and found some arithmetic overflow.reproduce with :