cppalliance / http_proto

HTTP/1 parsing and serialization algorithms using C++11
https://develop.http-proto.cpp.al/
Boost Software License 1.0
23 stars 10 forks source link

header max capacity calcuations overflow vulnerabilities #78

Open cmazakas opened 7 months ago

cmazakas commented 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.