- Notifications
You must be signed in to change notification settings - Fork5
Commit9d140f7
committed
Avoid out-of-bounds read in errfinish if error_stack_depth < 0.
If errordata_stack_depth < 0, we won't find that out and correct theproblem until CHECK_STACK_DEPTH() is invoked. In the meantime,elevel will be set based on an invalid read. This is probablyharmless in practice, but it seems cleaner this way.Xi Wang1 parent3e3520c commit9d140f7
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
397 | 397 |
| |
398 | 398 |
| |
399 | 399 |
| |
400 |
| - | |
| 400 | + | |
401 | 401 |
| |
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
| 406 | + | |
406 | 407 |
| |
407 | 408 |
| |
408 | 409 |
| |
|
0 commit comments
Comments
(0)