aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-02-23 15:53:34 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-02-23 15:53:34 -0500
commita7f6cb85486b1f3eacd86155af2fdc20a1dc2bec (patch)
treed06fa9ce0fcf382574e0914f46bc1e581786896c /src/tutorial/funcs.c
parentd1b8b8fbea0b34907b9571d2f7506e2089adb011 (diff)
downloadpostgresql-a7f6cb85486b1f3eacd86155af2fdc20a1dc2bec.tar.gz
postgresql-a7f6cb85486b1f3eacd86155af2fdc20a1dc2bec.zip
Convert newlines to spaces in names written in pg_dump comments.
pg_dump was incautious about sanitizing object names that are emitted within SQL comments in its output script. A name containing a newline would at least render the script syntactically incorrect. Maliciously crafted object names could present a SQL injection risk when the script is reloaded. Reported by Heikki Linnakangas, patch by Robert Haas Security: CVE-2012-0868
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions