1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-6262 analyze the coverity report on mariadb

uploaded 10.0, analyzed everything with the Impact=High
(and a couple of Medium)
This commit is contained in:
Sergei Golubchik
2017-05-17 15:16:24 +02:00
parent 335c4ab790
commit 7c03edf2fe
37 changed files with 96 additions and 63 deletions

View File

@@ -1976,7 +1976,7 @@ static Exit_status dump_remote_log_entries(PRINT_EVENT_INFO *print_event_info,
int2store(buf + BIN_LOG_HEADER_SIZE, binlog_flags);
size_t tlen = strlen(logname);
if (tlen > UINT_MAX)
if (tlen > sizeof(buf) - 10)
{
error("Log name too long.");
DBUG_RETURN(ERROR_STOP);