diff options
author | unknown <kaa@polly.(none)> | 2007-11-16 13:58:09 +0300 |
---|---|---|
committer | unknown <kaa@polly.(none)> | 2007-11-16 13:58:09 +0300 |
commit | 1c1dd1f25c42081c7bf72042ccfcb83896298aab (patch) | |
tree | fb5a92ce0d3b871470574922c9685fb513ea57f8 /sql/ha_myisam.cc | |
parent | f6686659551be614c835ff5f3730e87f41e06d84 (diff) | |
download | mariadb-git-1c1dd1f25c42081c7bf72042ccfcb83896298aab.tar.gz |
Fix for bug #32241: memory corruption due to large index map in 'Range
checked for each record'
The problem was in incorrectly calculated length of the buffer used to
store a hexadecimal representation of an index map in
select_describe(). This could result in buffer overrun and stack
corruption under some circumstances.
Fixed by correcting the calculation.
mysql-test/r/explain.result:
Added a test case for bug #32241.
mysql-test/t/explain.test:
Added a test case for bug #32241.
sql/sql_select.cc:
Corrected the buffer length calculation. Count one hex digit as 4 bits,
not 8.
Diffstat (limited to 'sql/ha_myisam.cc')
0 files changed, 0 insertions, 0 deletions