]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tools: fix my_htonll() on x86_64
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Oct 2017 09:39:33 +0000 (11:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Oct 2017 09:46:17 +0000 (11:46 +0200)
commitdea7c5c03de727f492e6ce2418a7651b4f0f6144
treeb1b1589de4f02b20e0f861e3ea7057539ec010fd
parent9130a9605d10a0c155bbc7e808770318606ede35
BUG/MINOR: tools: fix my_htonll() on x86_64

Commit 36eb3a3 ("MINOR: tools: make my_htonll() more efficient on x86_64")
brought an incorrect asm statement missing the input constraints, causing
the input value not necessarily to be placed into the same register as the
output one, resulting in random output. It happens to work when building at
-O0 but not above. This was only detected in the HTTP/2 parser, but in
mainline it could only affect the integer to binary sample cast.

No backport is needed since this bug was only introduced in the development
branch.
include/common/standard.h