1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
/*
* ------------------------------------
* NOTE: This test behaves differenly
* ------------------------------------
*
* Since 774171c4f64 (>=18) reporting of errors in extension script files
* is more detailed.
*
* security.out - test output for PostgreSQL (<18)
* security_1.out - test output for PostgreSQL (>=18)
*
*/
-- Check security CVE-2020-14350
CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
CREATE EXTENSION rum;
ERROR: function "rum_anyarray_similar" already exists with same argument types
DROP FUNCTION rum_anyarray_similar(anyarray,anyarray);
|