mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Bug#31752: check strmake() bounds
strmake() called with wrong parameters: 5.1-specific fixes.
This commit is contained in:
parent
72cd363665
commit
6bb485b080
@@ -1387,7 +1387,7 @@ static void backup_current_db_name(THD *thd,
|
||||
}
|
||||
else
|
||||
{
|
||||
strmake(saved_db_name->str, thd->db, saved_db_name->length);
|
||||
strmake(saved_db_name->str, thd->db, saved_db_name->length - 1);
|
||||
saved_db_name->length= thd->db_length;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user