Repository navigation
Commit d254592
Prevent out-of-bounds heap buffer read underflow on interrupted write in WriteStatsToFile.
When write(2) returns -1 with EINTR or EAGAIN while writing execution statistics, continuing the loop without adjusting buffer offsets avoids subtracting negative values, which previously caused heap buffer read underflow and corrupted stats output.
PiperOrigin-RevId: 983189510
Change-Id: I16bb37950724036a3a285351395165d3d6f692921 parent 9bcc2a3 commit d254592
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
292 | 299 | | |
293 | 300 | | |
294 | 301 | | |
| |||
0 commit comments