Skip to content
Permalink
Browse files
MDEV-16905 ASAN heap-use-after-free in __interceptor_strnlen / ... / …
…TABLE::verify_constraints upon INSERT into temporary table with CHECK constraint

just a test case
  • Loading branch information
vuvova committed Feb 5, 2019
1 parent b57ae8b commit 2273799
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
@@ -95,3 +95,10 @@ Warnings:
Warning 4025 CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
alter table t1;
drop table t1;
create temporary table t1 (a int default 0, check (a > 0));
alter table t1 drop constraint if exists non_existing_constraint;
Warnings:
Note 1091 Can't DROP CONSTRAINT `non_existing_constraint`; check that it exists
insert into t1 () values ();
ERROR 23000: CONSTRAINT `CONSTRAINT_1` failed for `test`.`t1`
drop table t1;
@@ -115,3 +115,12 @@ insert into t1 () values ();
alter ignore table t1 add constraint check (f > 0);
alter table t1;
drop table t1;

#
# MDEV-16905 ASAN heap-use-after-free in __interceptor_strnlen / ... / TABLE::verify_constraints upon INSERT into temporary table with CHECK constraint
#
create temporary table t1 (a int default 0, check (a > 0));
alter table t1 drop constraint if exists non_existing_constraint;
--error ER_CONSTRAINT_FAILED
insert into t1 () values ();
drop table t1;

0 comments on commit 2273799

Please sign in to comment.