Changeset: c63cb44912c6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c63cb44912c6
Added Files:
        sql/test/BugTracker-2024/Tests/7573-strcpy_len-crash.test
Modified Files:
        sql/test/BugTracker-2024/Tests/All
Branch: Dec2025
Log Message:

Add missing test for #7573


diffs (39 lines):

diff --git a/sql/test/BugTracker-2024/Tests/7573-strcpy_len-crash.test 
b/sql/test/BugTracker-2024/Tests/7573-strcpy_len-crash.test
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2024/Tests/7573-strcpy_len-crash.test
@@ -0,0 +1,23 @@
+statement ok
+DROP TABLE IF EXISTS t0 CASCADE
+
+statement ok
+CREATE  TABLE  t0(c1 INTEGER)
+
+statement ok
+INSERT INTO t0(c1) VALUES (-296623006)
+
+statement ok
+INSERT INTO t0(c1) VALUES (NULL)
+
+statement ok
+INSERT INTO t0(c1) VALUES (-1566205920)
+
+query I rowsort
+SELECT * FROM t0 WHERE (NOT (((- 9223372036854775807))>((CASE t0.c1 WHEN t0.c1 
THEN -1 END )))) UNION ALL SELECT * FROM t0 WHERE (NOT (NOT (((- 
9223372036854775807))>((CASE t0.c1 WHEN t0.c1 THEN -1 END )))))
+----
+-1566205920
+-296623006
+
+statement ok
+DROP TABLE t0
diff --git a/sql/test/BugTracker-2024/Tests/All 
b/sql/test/BugTracker-2024/Tests/All
--- a/sql/test/BugTracker-2024/Tests/All
+++ b/sql/test/BugTracker-2024/Tests/All
@@ -88,6 +88,7 @@ function_return_issue
 7563-is-distinct-from
 7572-max-length-changes
 7570-timestamp-str
+7573-strcpy_len-crash
 7574-startswith-bug
 7580-date-diff
 7582-ddl-exists
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to