summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2007-02-02 00:04:02 +0000
committerTom Lane2007-02-02 00:04:02 +0000
commitb4ddb79af5eb1ab23a41e1a8885b391c5ffab4d3 (patch)
tree4d611511262d5788272a6eed0f90761eef48f75e /doc/src
parent65ada7c8107ffc5826a5957d78ce7cfc19a9bbef (diff)
Repair insufficiently careful type checking for SQL-language functions:
we should check that the function code returns the claimed result datatype every time we parse the function for execution. Formerly, for simple scalar result types we assumed the creation-time check was sufficient, but this fails if the function selects from a table that's been redefined since then, and even more obviously fails if check_function_bodies had been OFF. This is a significant security hole: not only can one trivially crash the backend, but with appropriate misuse of pass-by-reference datatypes it is possible to read out arbitrary locations in the server process's memory, which could allow retrieving database content the user should not be able to see. Our thanks to Jeff Trout for the initial report. Security: CVE-2007-0555
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions