diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:00:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:00:34 +0000 |
commit | 3f619478f796eddbba6e39502fe941b285dd97b1 (patch) | |
tree | e2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/main/strings.test | |
parent | Initial commit. (diff) | |
download | mariadb-3f619478f796eddbba6e39502fe941b285dd97b1.tar.xz mariadb-3f619478f796eddbba6e39502fe941b285dd97b1.zip |
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | mysql-test/main/strings.test | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/mysql-test/main/strings.test b/mysql-test/main/strings.test new file mode 100644 index 00000000..3f3f4b57 --- /dev/null +++ b/mysql-test/main/strings.test @@ -0,0 +1,38 @@ +--source include/not_windows.inc +--source include/not_embedded.inc + +# +# Test that exposes problems in string functions like my_vsnprintf +# + +--echo # +--echo # MDEV-25612 Assertion `to <= end' failed in process_args +--echo # +SET SESSION default_master_connection=REPEAT('a',190),lc_messages=ru_ru; +CHANGE MASTER TO master_host='dummy'; +START SLAVE sql_thread; +--error ER_SLAVE_MUST_STOP +CHANGE MASTER TO master_user='user',master_password='pwd'; +STOP SLAVE; +RESET SLAVE ALL; + +--echo # +--echo # MDEV-25754 ASAN: stack-buffer-overflow in Field_newdate::val_str +--echo # + +CREATE TABLE t1 (d DATE); +INSERT INTO t1 VALUES ('1920-03-02'),('2020-12-01'); +SELECT LENGTH(CONCAT_WS(d, ' ')) FROM t1; +DROP TABLE t1; + +--echo # +--echo # MDEV-28315 ASAN stack-buffer-overflow in String::copy_aligned +--echo # + +CREATE TABLE t1 (a VARBINARY(128)) CHARACTER SET utf32; +INSERT INTO t1 VALUES ('South Carolina, Vermont, New Jersey, New Mexico, Wisconsin, Missouri, Delaware'); +CREATE TABLE t2 (b SET('South Carolina', 'Vermont', 'Texas', 'New Mexico', 'Wisconsin', 'Missouri', 'Delaware', 'Wyoming', 'New Jersey', 'Maryland', 'Illinois', 'New York')) CHARACTER SET utf32; +--error WARN_DATA_TRUNCATED +INSERT INTO t2 SELECT * FROM t1; +DROP TABLE t1; +DROP TABLE t2; |