mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Bug#13851171 STRING OVERFLOW IN INNODB CODE FOUND BY STATIC ANALYSIS
rb://976 approved by: Marko Makela Add an assertion to ensure that string overflow is not happening. Pointed by Coverity analysis.
This commit is contained in:
parent
df2da7d7cc
commit
8729b2e584
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-03-15 The InnoDB Team
|
||||
|
||||
* handler/ha_innodb.cc:
|
||||
Fix Bug#13851171STRING OVERFLOW IN INNODB CODE FOUND BY STATIC
|
||||
ANALYSIS
|
||||
|
||||
2012-03-15 The InnoDB Team
|
||||
|
||||
* include/sync0rw.ic:
|
||||
|
|
|
@ -6718,6 +6718,8 @@ ha_innobase::create(
|
|||
DBUG_RETURN(HA_ERR_TO_BIG_ROW);
|
||||
}
|
||||
|
||||
ut_a(strlen(name) < sizeof(name2));
|
||||
|
||||
strcpy(name2, name);
|
||||
|
||||
normalize_table_name(norm_name, name2);
|
||||
|
|
Loading…
Reference in a new issue