mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#31588: buffer overrun when setting variables
Buffer used when setting variables was not dimensioned to accomodate trailing '\0'. An overflow by one character was therefore possible. CS corrects limits to prevent such overflows.
This commit is contained in:
@ -447,4 +447,11 @@ set @test = @@query_prealloc_size;
|
||||
set @@query_prealloc_size = @test;
|
||||
select @@query_prealloc_size = @test;
|
||||
|
||||
# End of 4.1 tests
|
||||
#
|
||||
# Bug#31588 buffer overrun when setting variables
|
||||
#
|
||||
# Buffer-size Off By One. Should throw valgrind-warning without fix #31588.
|
||||
--error 1231
|
||||
set global sql_mode=repeat('a',80);
|
||||
|
||||
--echo End of 4.1 tests
|
||||
|
Reference in New Issue
Block a user