]> granicus.if.org Git - postgresql/commit
Don't use ordinary NULL-terminated strings as Name datums.
authorNoah Misch <noah@leadboat.com>
Wed, 12 Jun 2013 23:49:50 +0000 (19:49 -0400)
committerNoah Misch <noah@leadboat.com>
Wed, 12 Jun 2013 23:49:50 +0000 (19:49 -0400)
commitff53890f687c7f6b2a10db6661e9c32faf832636
treebd1bd5221cc815a5c0169f593292cf81f44542b4
parentdc3eb5638349e74a6628130a5101ce866455f4a3
Don't use ordinary NULL-terminated strings as Name datums.

Consumers are entitled to read the full 64 bytes pertaining to a Name;
using a shorter NULL-terminated string leads to reading beyond the end
its allocation; a SIGSEGV is possible.  Use the frequent idiom of
copying to a NameData on the stack.  New in 9.3, so no back-patch.
src/backend/commands/alter.c
src/backend/commands/event_trigger.c