File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * ------------------------------------
3+ * NOTE: This test behaves differenly
4+ * ------------------------------------
5+ *
6+ * Since 774171c4f64 (>=18) reporting of errors in extension script files
7+ * is more detailed.
8+ *
9+ * security.out - test output for PostgreSQL (<18)
10+ * security_1.out - test output for PostgreSQL (>=18)
11+ *
12+ */
113-- Check security CVE-2020-14350
214CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
315CREATE EXTENSION rum;
Original file line number Diff line number Diff line change 1+ /*
2+ * ------------------------------------
3+ * NOTE: This test behaves differenly
4+ * ------------------------------------
5+ *
6+ * Since 774171c4f64 (>=18) reporting of errors in extension script files
7+ * is more detailed.
8+ *
9+ * security.out - test output for PostgreSQL (<18)
10+ * security_1.out - test output for PostgreSQL (>=18)
11+ *
12+ */
13+ -- Check security CVE-2020-14350
14+ CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
15+ CREATE EXTENSION rum;
16+ ERROR: function "rum_anyarray_similar" already exists with same argument types
17+ CONTEXT: SQL statement "CREATE FUNCTION rum_anyarray_similar(anyarray,anyarray)
18+ RETURNS bool
19+ AS '$libdir/rum'
20+ LANGUAGE C STRICT STABLE"
21+ extension script file "rum--1.3.sql", near line 1530
22+ DROP FUNCTION rum_anyarray_similar(anyarray,anyarray);
Original file line number Diff line number Diff line change 1+ /*
2+ * ------------------------------------
3+ * NOTE: This test behaves differenly
4+ * ------------------------------------
5+ *
6+ * Since 774171c4f64 (>=18) reporting of errors in extension script files
7+ * is more detailed.
8+ *
9+ * security.out - test output for PostgreSQL (<18)
10+ * security_1.out - test output for PostgreSQL (>=18)
11+ *
12+ */
13+
114-- Check security CVE-2020-14350
215CREATE FUNCTION rum_anyarray_similar (anyarray,anyarray) RETURNS bool AS $$ SELECT false $$ LANGUAGE SQL;
316CREATE EXTENSION rum;
You can’t perform that action at this time.
0 commit comments