[all-commits] [llvm/llvm-project] da032a: [Wunsafe-buffer-usage] Fix false positives in hand...
Malavika Samak via All-commits
all-commits at lists.llvm.org
Mon Nov 11 16:47:50 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: da032a609c1bde6f6775cf1650e08a205920d920
https://github.com/llvm/llvm-project/commit/da032a609c1bde6f6775cf1650e08a205920d920
Author: Malavika Samak <malavika.samak at gmail.com>
Date: 2024-11-11 (Mon, 11 Nov 2024)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-array.cpp
Log Message:
-----------
[Wunsafe-buffer-usage] Fix false positives in handling string literals. (#115552)
Do not warn when a string literal is indexed and the idex value is
within the bounds of the length of the string.
(rdar://139106996)
Co-authored-by: MalavikaSamak <malavika2 at apple.com>
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