[all-commits] [llvm/llvm-project] 735b15: [libc] Fix strcasecmp/strncasecmp signedness and a...
Jeff Bailey via All-commits
all-commits at lists.llvm.org
Fri Apr 17 07:42:27 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 735b15239c493fce6a5033776470892f30d7e00e
https://github.com/llvm/llvm-project/commit/735b15239c493fce6a5033776470892f30d7e00e
Author: Jeff Bailey <jbailey at raspberryginger.com>
Date: 2026-04-17 (Fri, 17 Apr 2026)
Changed paths:
M libc/src/strings/strcasecmp.cpp
M libc/src/strings/strncasecmp.cpp
M libc/test/src/string/strcmp_test.cpp
M libc/test/src/strings/strcasecmp_test.cpp
M libc/test/src/strings/strncasecmp_test.cpp
Log Message:
-----------
[libc] Fix strcasecmp/strncasecmp signedness and add tests (#192632)
Fixed character signedness bug in strcasecmp and strncasecmp
implementations in src/strings/ where characters > 127 were not
correctly handled.
Added LIBC_CRASH_ON_NULLPTR checks to both functions.
Enhanced unit tests in test/src/strings/ to be comprehensive without
duplicating basic case insensitivity tests.
Updated assertions in strcasecmp_test, strncasecmp_test, and strcmp_test
to check for sign instead of exact value.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list