Fixes a bunch of warnings triggered by GCC 9.1
Fixes #600 (closed).
Merge request reports
Activity
@pdraper do you have any views on this? It looks to me that the compiler should be able to infer the size of the string we write without us having to explicitly give it as an argument. Is that a false-positive?
Pretty sure this is a false positive. There are a number of bugs reported against
-Werror=format-overflow
for GCC 8 and 9 (also have a recollection we made some fixes to strncpy for similar reasons with GCC 8). I guess the other way around this would be to trysnprintf
, these changes are really all about catching all those pesky string overflow compromises in the kernel and similar...mentioned in commit 27f4efc6
Please register or sign in to reply