1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03: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:
Inaam Rana
2012-03-15 12:38:40 -04:00
parent a8217b7cd3
commit 04c96834cc
2 changed files with 8 additions and 0 deletions

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