Commit 7446601
authored
[-Wunsafe-buffer-usage] Fix a potential overflow bug reported by llvm#126334 (llvm#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".1 parent 818bca8 commit 7446601
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2364 | 2364 | | |
2365 | 2365 | | |
2366 | 2366 | | |
2367 | | - | |
2368 | | - | |
2369 | | - | |
2370 | | - | |
2371 | | - | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2372 | 2370 | | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
2373 | 2374 | | |
2374 | 2375 | | |
2375 | 2376 | | |
| |||
0 commit comments