]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] halog: do not consider byte 0x8A as end of line
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Sep 2011 06:21:55 +0000 (08:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Sep 2011 06:21:55 +0000 (08:21 +0200)
commit96c148b0d22f461afe5d345ca9d93d0e8ccc7e78
tree7cc29b3978d05f2515cd5c48b91f7962c30c1526
parent52b2d228edaf5081331cf2ccac21b4fcbefdfc68
[MINOR] halog: do not consider byte 0x8A as end of line

A bug in the algorithm used to find an LF in multiple bytes at once
made byte 0x80 trigger detection of byte 0x00, thus 0x8A matches byte
0x0A. In practice, this issue never happens since byte 0x8A won't be
displayed in logs (or it will be encoded). This could still possibly
happen in mixed logs.
contrib/halog/fgets2-64.c
contrib/halog/fgets2.c