mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-21748 ASAN use-after-poison in PageBulk::insertPage()
PageBulk::insertPage(): Check the array bounds before comparing.
We used to read one byte beyond the end of the 'rec' payload.
The incorrect logic was originally introduced in
commit 7ae21b18a6
.
This commit is contained in:
committed by
Sergei Golubchik
parent
e2e2f89303
commit
561b5ce364
@ -71,3 +71,14 @@ show create table t2;
|
||||
alter table t1 engine=innodb;
|
||||
alter table t1 add column b int;
|
||||
drop table t1,t2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-21748 ASAN use-after-poison in PageBulk::insertPage()
|
||||
--echo #
|
||||
CREATE TABLE t1 (pk TIMESTAMP PRIMARY KEY, a TIMESTAMP NULL UNIQUE)
|
||||
ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES
|
||||
('2020-03-10 10:21:00', NULL),
|
||||
('0000-00-00 00:00:00', '0000-00-00 00:00:00');
|
||||
ALTER TABLE t1 FORCE, ALGORITHM=INPLACE;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user