- Notifications
You must be signed in to change notification settings - Fork5
Commit561ec76
committed
psql: Fix invalid memory access
Due to an apparent thinko, when printing a table in expanded mode(\x), space would be allocated for 1 slot plus 1 byte per line,instead of 1 slot per line plus 1 slot for the NULL terminator. Whenthe line count is small, reading or writing the terminator wouldtherefore access memory beyond what was allocated.1 parentf9325df commit561ec76
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1210 | 1210 |
| |
1211 | 1211 |
| |
1212 | 1212 |
| |
1213 |
| - | |
1214 |
| - | |
| 1213 | + | |
| 1214 | + | |
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 | 1217 |
| |
|
0 commit comments
Comments
(0)