mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed bug #28522:
sometimes `mysqldump --hex-blob' overruned output buffer by '\0' byte. The dump_table() function has been fixed to reserve 1 byte more for the last '\0' byte of dumped string.
This commit is contained in:
@@ -1528,7 +1528,14 @@ drop user user2;
|
||||
|
||||
drop database mysqldump_test_db;
|
||||
|
||||
--echo #
|
||||
--echo # Bug #28522: buffer overrun by '\0' byte using --hex-blob.
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (c1 INT, c2 LONGBLOB);
|
||||
INSERT INTO t1 SET c1=11, c2=REPEAT('q',509);
|
||||
--exec $MYSQL_DUMP --skip-create --compact --hex-blob test t1
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # End of 5.0 tests
|
||||
|
||||
Reference in New Issue
Block a user