- Notifications
You must be signed in to change notification settings - Fork5
Commitc5bfcc1
committed
Fix some possible low-memory failures in regexp compilation.
newnfa() failed to set the regex error state when malloc() fails.Several places in regcomp.c failed to check for an error after callingsubre(). Each of these mistakes could lead to null-pointer-dereferencecrashes in memory-starved backends.Report and patch by Andreas Seltenreich. Back-patch to all branches.1 parent58d2e7f commitc5bfcc1
2 files changed
+6
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
| 56 | + | |
55 | 57 |
| |
| 58 | + | |
56 | 59 |
| |
57 | 60 |
| |
58 | 61 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
942 | 942 |
| |
943 | 943 |
| |
944 | 944 |
| |
| 945 | + | |
945 | 946 |
| |
946 | 947 |
| |
947 | 948 |
| |
| |||
1076 | 1077 |
| |
1077 | 1078 |
| |
1078 | 1079 |
| |
| 1080 | + | |
1079 | 1081 |
| |
1080 | 1082 |
| |
1081 | 1083 |
| |
| |||
1084 | 1086 |
| |
1085 | 1087 |
| |
1086 | 1088 |
| |
| 1089 | + | |
1087 | 1090 |
| |
1088 | 1091 |
| |
1089 | 1092 |
| |
|
0 commit comments
Comments
(0)