mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-34205: ASAN stack buffer overflow in strxnmov() in frm_file_exists
Correct the second parameter for strxnmov to prevent potential buffer overflows. The second parameter must be one less than the size of the input buffer to avoid writing past the end of the buffer. While the second parameter is usually correct, there are exceptions that need fixing. This commit addresses the issue within frm_file_exists() and other affected places.
This commit is contained in:
@ -361,3 +361,9 @@ drop table mysqltest.does_not_exists;
|
||||
drop database mysqltest;
|
||||
drop database mysqltest;
|
||||
set @@session.sql_if_exists=0;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-34205 ASAN stack-buffer-overflow in strxnmov | frm_file_exists
|
||||
--echo #
|
||||
--error ER_BAD_TABLE_ERROR
|
||||
DROP TABLE `##################################################_long`.`#################################################_long`;
|
||||
|
Reference in New Issue
Block a user