Commit 5edfc63
committed
Keep EG(errors) buffer consistent on alloc failure
Update the error count only after the buffer has been resized and the new
entry initialized. This prevents fatal error handling from reading past the
buffer if reallocating it triggers an OOM bailout.1 parent daeeed8 commit 5edfc63
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1492 | 1493 | | |
1493 | 1494 | | |
1494 | 1495 | | |
| |||
0 commit comments