- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit73dc003
committed
Add missing error check in regexp parser.
parseqatom() failed to check for an error return (NULL result) from itsrecursive call to parsebranch(), and in consequence could crash with anull-pointer dereference after an error return. This bug has been theresince day one, but wasn't noticed before, probably because most error casesin parsebranch() didn't actually lead to returning NULL. Add the missingerror check, and also tweak parsebranch() to exit in a less indirectfashion after a call to parseqatom() fails.Report by Tomasz Karlik, fix by me.1 parent08f9728 commit73dc003
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
712 | 712 |
| |
713 | 713 |
| |
714 | 714 |
| |
| 715 | + | |
715 | 716 |
| |
716 | 717 |
| |
717 | 718 |
| |
| |||
1169 | 1170 |
| |
1170 | 1171 |
| |
1171 | 1172 |
| |
| 1173 | + | |
1172 | 1174 |
| |
1173 | 1175 |
| |
1174 | 1176 |
| |
|
0 commit comments
Comments
(0)