[libc-commits] [libc] [libc] fix oob and overflow bugs in wcslcat and wcsncat (PR #203697)
Hardik Kumar via libc-commits
libc-commits at lists.llvm.org
Mon Jun 15 08:12:36 PDT 2026
hardikxk wrote:
Hey, I have added the tests as well!
- For wcslcat the test is good and checks for the overflow.
- For wcsncat, it would be helpful if you once review whether the test is good since I'm not sure how it would be possible to test OOB access (other than just to check if it hits a null terminator - in which case the test passes either way regardless of the patch).
Thanks!!
https://github.com/llvm/llvm-project/pull/203697
More information about the libc-commits
mailing list