[all-commits] [llvm/llvm-project] 744660: [-Wunsafe-buffer-usage] Fix a potential overflow b...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Fri Feb 28 10:33:53 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7446601c6a9b71945fdc9d7434d8347789708858
https://github.com/llvm/llvm-project/commit/7446601c6a9b71945fdc9d7434d8347789708858
Author: Ziqing Luo <ziqing at udel.edu>
Date: 2025-02-28 (Fri, 28 Feb 2025)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Fix a potential overflow bug reported by #126334 (#129169)
`MeasureTokenLength` may return an unsigned 0 representing failure in
obtaining length of a token. The analysis now gives up on such cases.
Otherwise, there might be issues caused by unsigned integer "overflow".
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