- Notifications
You must be signed in to change notification settings - Fork5
Commit4f5182e
committed
Fix off-by-one in memory allocation for quote_literal_cstr().
The calculation didn't take into account the NULL terminator. That leadto overwriting the palloc'd buffer by one byte, if the input consistsentirely of backslashes. For example "format('%L', E'\\')".Fixes bug #14468. Backpatch to all supported versions.Report:https://www.postgresql.org/message-id/20161216105001.13334.42819%40wrigleys.postgresql.org1 parent93513d1 commit4f5182e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments
Comments
(0)