Bug #4365
Updated by Davide Pesavento almost 7 years ago
On Ubuntu 17.10, release mode: 17.10: ``` ../src/util/logger.cpp: In function ‘std::ostream& ndn::util::operator<<(std::ostream&, const ndn::util::LoggerTimestamp&)’: ../src/util/logger.cpp:113:1: warning: ‘%06ld’ directive output may be truncated writing between 6 and 7 bytes into a region of size between 6 and 16 [-Wformat-truncation=] operator<<(std::ostream& os, const LoggerTimestamp&) ^~~~~~~~ ../src/util/logger.cpp:113:1: note: directive argument in the range [-999999, 999999] In file included from /usr/include/stdio.h:862:0, from /usr/include/c++/7/cstdio:42, from /usr/include/c++/7/ext/string_conversions.h:43, from /usr/include/c++/7/bits/basic_string.h:6349, from /usr/include/c++/7/string:52, from /usr/include/c++/7/stdexcept:39, from /usr/include/c++/7/array:39, from /usr/include/c++/7/tuple:39, from /usr/include/c++/7/functional:54, from ./../src/common.hpp:56, from ./../src/common-pch.hpp:28, from <command-line>:0: /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 9 and 20 bytes into a destination of size 18 __bos (__s), __fmt, __va_arg_pack ()); ^ ``` Not sure if it's real or a false positive.