1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-29520 heap-use-after-poison in row_merge_spatial_rows()

row_merge_read_clustered_index(): Do not call mem_heap_empty(row_heap)
before row_merge_spatial_rows() has been able to read the data.
This commit is contained in:
Marko Mäkelä
2022-09-13 08:58:34 +03:00
parent f1544424de
commit fc794fd8ff
3 changed files with 28 additions and 2 deletions

View File

@ -780,3 +780,17 @@ CREATE OR REPLACE TABLE t1 (a INT) ENGINE=InnoDB;
ALTER TABLE t1 ADD COLUMN b POINT DEFAULT '0';
DROP TABLE t1;
--echo #
--echo # MDEV-29520 heap-use-after-poison in row_merge_spatial_rows()
--echo #
CREATE TABLE t
(a VARCHAR(8192), b POINT NOT NULL, PRIMARY KEY(a(8)), SPATIAL(b))
ENGINE=InnoDB;
INSERT INTO t VALUES (REPEAT('MariaDB Corporation Ab ',351),POINT(0,0));
ALTER TABLE t FORCE;
# Cleanup
DROP TABLE t;
--echo # End of 10.3 tests