forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1fed234
committed
ecpg: fix more minor mishandling of bad input in preprocessor.
Don't get confused by an unmatched right brace in the input.(Previously, this led to discarding information about file-levelvariables and then possibly crashing.)Detect, rather than crash on, an attempt to index into a non-arrayvariable.As before, in the absence of field complaints I'm not tooexcited about back-patching these.Per valgrind testing by Alexander Lakhin.Discussion:https://postgr.es/m/a239aec2-6c79-5fc9-9272-cea41158a360@gmail.com1 parent98c7c71 commit1fed234
2 files changed
+10
-6
lines changedLines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
| 46 | + | |
49 | 47 |
| |
50 |
| - | |
51 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 |
| - | |
| 236 | + | |
| 237 | + | |
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
|
0 commit comments
Comments
(0)