]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: tools: fix invalid character detection in strl2ic()
authorHuangbin Zhan <zhanhb88@gmail.com>
Thu, 2 Jul 2026 13:56:48 +0000 (09:56 -0400)
committerOlivier Houchard <cognet@ci0.org>
Thu, 2 Jul 2026 14:02:49 +0000 (16:02 +0200)
commitc6d71297bcc6a9410d3cff46322f3c17f334b99e
tree7c76034b3ce60aad42d30996715ea1fca3d62167
parente66c2c3acdceb4de501aea551ce3ed0f76b1c846
BUG/MINOR: tools: fix invalid character detection in strl2ic()

ASCII characters with a value smaller than '0' were not properly
detected as invalid characters, leading to incorrect behavior. The
strl2irc() and strl2llrc() functions are not impacted because this
situation is detected by their overflow checks.

Fixes Github issue #3357.
src/tools.c