]> git.ipfire.org Git - thirdparty/asterisk.git/commit
strings.c: Improve numeric detection in `ast_strings_match()`.
authorSean Bright <sean@seanbright.com>
Wed, 15 Jan 2025 16:42:29 +0000 (11:42 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:39:41 +0000 (18:39 +0000)
commit8b62a1c8a9a055fde007979949c08649cf3647f5
tree615260fd42a5ddf48f169a42af929aa13628a2f3
parent24c077f1fb2d72029dd2d80766740dd189af4fc6
strings.c: Improve numeric detection in `ast_strings_match()`.

Essentially, we were treating 1234x1234 and 1234x5678 as 'equal'
because we were able to convert the prefix of each of these strings to
the same number.

Resolves: #1028
(cherry picked from commit 813b774cc1f917f0bf21b80269270e484018b0c0)
main/strings.c
tests/test_strings.c