Commit 04c96834 authored by Inaam Rana's avatar Inaam Rana

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.
parent a8217b7c
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 2012-03-15 The InnoDB Team
* include/sync0rw.ic: * include/sync0rw.ic:
......
...@@ -6718,6 +6718,8 @@ ha_innobase::create( ...@@ -6718,6 +6718,8 @@ ha_innobase::create(
DBUG_RETURN(HA_ERR_TO_BIG_ROW); DBUG_RETURN(HA_ERR_TO_BIG_ROW);
} }
ut_a(strlen(name) < sizeof(name2));
strcpy(name2, name); strcpy(name2, name);
normalize_table_name(norm_name, name2); normalize_table_name(norm_name, name2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment