forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc53a82b
committed
Fix undersized result buffer in pset_quoted_string().
The malloc request was 1 byte too small for the worst-case output.This seems relatively unlikely to cause any problems in practice,as the worst case only occurs if the input string contains nocharacters other than single-quote or newline, and even thenmalloc alignment padding would probably save the day. But it'sdefinitely a bug.David Rowley1 parent859e2b9 commitc53a82b
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2603 | 2603 |
| |
2604 | 2604 |
| |
2605 | 2605 |
| |
2606 |
| - | |
| 2606 | + | |
2607 | 2607 |
| |
2608 | 2608 |
| |
2609 | 2609 |
| |
|
0 commit comments
Comments
(0)