summaryrefslogtreecommitdiff
path: root/mysql-test/r/variables.result
diff options
context:
space:
mode:
authortnurnberg@sin.intern.azundris.com <>2007-10-18 10:47:54 +0200
committertnurnberg@sin.intern.azundris.com <>2007-10-18 10:47:54 +0200
commite6ef54b31f9f59316e5b4037a868f030a3990b3d (patch)
treed5f9a4b59eab9b021a873e89e87187e3d3765c5b /mysql-test/r/variables.result
parent39f6cbc221a7b8d88326a6fab41fa1459e8b9dbe (diff)
downloadmariadb-git-e6ef54b31f9f59316e5b4037a868f030a3990b3d.tar.gz
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.
Diffstat (limited to 'mysql-test/r/variables.result')
-rw-r--r--mysql-test/r/variables.result3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
index 14f1eb7d306..a5b6c308969 100644
--- a/mysql-test/r/variables.result
+++ b/mysql-test/r/variables.result
@@ -561,3 +561,6 @@ set @@query_prealloc_size = @test;
select @@query_prealloc_size = @test;
@@query_prealloc_size = @test
1
+set global sql_mode=repeat('a',80);
+ERROR 42000: Variable 'sql_mode' can't be set to the value of 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+End of 4.1 tests