]> git.kaiwu.me - haproxy.git/commit
[BUG] fix error checking in strl2ic/strl2uic()
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Oct 2007 07:42:24 +0000 (09:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Nov 2007 22:13:27 +0000 (23:13 +0100)
commit0f6202215cb8ef7a960dae34c0dbc3e915f50b66
treeb339a042971aa579968dde2679852264435989fe
parenta96332822f8c89404d2279f018664b290f9a2a38
[BUG] fix error checking in strl2ic/strl2uic()

The strl2ic() and strl2uic() primitives used to convert string to
integers could return 10 times the value read if they stopped on
non-digit because of a mis-placed loop exit.
(cherry picked from commit 3f0c9761352efc06b498ad43f314b136d92cf05d)
include/common/standard.h
src/standard.c