Commit f37be15
committed
[-Wunsafe-buffer-usage] Fix a potential overflow bug reported by #126334
`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 85f8bd1 commit f37be15
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