1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-14929 - AddressSanitizer: memcpy-param-overlap in Field_longstr::compress

Handle overlaping "from" and Field_blob_compressed::value for compressed
blobs similarily to regular blobs.
This commit is contained in:
Sergey Vojtovich
2018-03-21 13:54:15 +04:00
parent 69efa1343a
commit 443b9a418c
3 changed files with 36 additions and 6 deletions

View File

@ -79,3 +79,15 @@ INSERT INTO t1 VALUES(REPEAT('a', 255));
SET column_compression_threshold=DEFAULT;
SELECT a, LENGTH(a) FROM t1;
DROP TABLE t1;
--echo #
--echo # MDEV-14929 - AddressSanitizer: memcpy-param-overlap in
--echo # Field_longstr::compress
--echo #
CREATE TABLE t1(b BLOB COMPRESSED);
INSERT INTO t1 VALUES('foo'),('bar');
SET SESSION optimizer_switch = 'derived_merge=off';
SELECT * FROM ( SELECT * FROM t1 ) AS sq ORDER BY b;
SET SESSION optimizer_switch=DEFAULT;
DROP TABLE t1;