Skip to content

Fixed std::stof() function crashing server from bad arguments. Issue #14

Ole Jonas Liahagen requested to merge olejlia/buggy-web-server:master into master

The std::stof() function used in the validation of HTTP-versions was crashing the server when getting bad inputs. This occured when char-arrays and numbers that were too large were passed as arguments to the function. Fixed by putting the function into a try/catch-block and kicking the client if it presents an invalid version number.

Merge request reports