mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
233590a48d
Problem was that Field_newdate() didn't allocate a string big enough for the result.
35 lines
940 B
Text
35 lines
940 B
Text
--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-25778 Overrun buffer in to_string_native()
|
|
--echo #
|
|
|
|
CREATE TABLE t1 (a DECIMAL(15,11) ZEROFILL);
|
|
INSERT INTO t1 (a) VALUES (0.1),(0.2);
|
|
SELECT length(ENCRYPT(a)) AS f, COUNT(*) FROM t1 GROUP BY f;
|
|
DROP TABLE t1;
|
|
|
|
--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;
|