]> granicus.if.org Git - postgresql/commit
Fix CVE-2013-0255 properly.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Feb 2013 21:20:01 +0000 (16:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Feb 2013 21:20:01 +0000 (16:20 -0500)
commit71627f3d1964ef9831ea7997d2f4ac5617c718cc
treea114bfdd27d8ec8484b570def5627f0a21522a80
parent9728eda7925b6d42621b38c48e91ef9ab8d90cbc
Fix CVE-2013-0255 properly.

Revert commit ab0f7b6089fd215f6ce6081e2e222c38d643a526 (in HEAD only)
in favor of the proper solution, which is to declare enum_recv() correctly
in the system catalogs.  It should be declared to take type "internal"
not "cstring".

Also improve the type_sanity regression test, which should have caught
this typo, so that it actually would.  Most of the relevant checks on
the signature of type I/O functions should not have been restricted to
basetypes/pseudotypes, as they should apply to any type's I/O functions.
src/backend/utils/adt/enum.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/regress/expected/type_sanity.out
src/test/regress/sql/type_sanity.sql