Actions
Bug #2176
closedgcc 7.1.1 'format truncation' compiler warnings
Affected Versions:
Effort:
Difficulty:
Label:
Description
Gcc 7.1.1 in Fedora 26 includes new warnings by default.
Example:
log-httplog.c: In function ‘LogHttpLogCustom’: log-httplog.c:164:39: warning: ‘snprintf’ output truncated before the last format character [-Wformat-truncation=] snprintf(buf, 6, "%06u", (unsigned int) ts->tv_usec); ^ log-httplog.c:164:17: note: ‘snprintf’ output between 7 and 11 bytes into a destination of size 6 snprintf(buf, 6, "%06u", (unsigned int) ts->tv_usec); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation https://bugzilla.redhat.com/show_bug.cgi?id=1431678
Actions