`strtoul` will attempt to lookup the next digit up until it will stumble upon an invalid one. However, for an unterminated string as an input value, this results in out-of-bounds read. Remove `strtoul` call, and replace it with simple loop. Fix: #408 PR-URL: https://github.com/nodejs/http-parser/pull/409 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>make-http-max-header-size-gyp-configurable
parent
b11de0f5c6
commit
9ce7316de3
Loading…
Reference in new issue