Re:Althttpd: Simple webserver in a single C file
by acqq on Tuesday June 08, 2021 @04:45PM
(#27440533)
It's not an integer overflow that would be needed but an unsigned overflow. The way I see it, on 32-bits, that means that the size HTTP request would have to be bigger than what's available to both user application and the OS together. In short, one just can't get the input request that big. Of course, if you manage that, you'll disprove this claim.
Re:Althttpd: Simple webserver in a single C file
by ectospheno on Tuesday June 08, 2021 @04:08PM
(#27440092)
None that stand out to me, including what you posted. Do you have a real example?
Re:Althttpd: Simple webserver in a single C file
by thisgoodlife on Tuesday June 08, 2021 @06:17PM
(#27441766)
MAX_CONTENT_LENGTH is 250MB. You won’t be able to send 4GB of data.
However, the presence of one piece of code that is not integer-overflow safe definitely makes me nervous. This is just the one I found in 5 minutes, what else is in there?