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:
Inaam Rana 2012-03-15 12:38:40 -04:00
parent df2da7d7cc
commit 8729b2e584
2 changed files with 8 additions and 0 deletions

View file

@ -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:

View file

@ -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);