]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1: the HTTP/1 make status code parser check for digits
authorWilly Tarreau <w@1wt.eu>
Thu, 9 Nov 2017 10:15:45 +0000 (11:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Nov 2017 10:15:45 +0000 (11:15 +0100)
commit1b4cf9b7545792aedbf9cf00b8948e6cf28824ed
tree0517db5160b325b89a06c1eb32284b710953007b
parentddfbd83780de0f140fc7195d1a16953ec18ef37a
BUG/MINOR: h1: the HTTP/1 make status code parser check for digits

The H1 parser used by the H2 gateway was a bit lax and could validate
non-numbers in the status code. Since it computes the code on the fly
it's problematic, as "30:" is read as status code 310. Let's properly
check that it's a number now. No backport needed.
include/proto/h1.h
src/h1.c