forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitebe6089
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 parent0e92519 commitebe6089
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1177 | 1177 |
| |
1178 | 1178 |
| |
1179 | 1179 |
| |
1180 |
| - | |
1181 |
| - | |
| 1180 | + | |
| 1181 | + | |
1182 | 1182 |
| |
1183 | 1183 |
| |
1184 | 1184 |
| |
|
0 commit comments
Comments
(0)