Open oppiet30 opened 1 year ago
stackoverflow has various posts about replacing the deprecated calls. If someone wants to do this that would be good, but it's not pressing.
Can I add the #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
in the beginning in the file? Is it allowed?
It's better to fix deprecations instead of just ignoring them
I could give this a try. @oppiet30 could you share the command you used to build this so I can replicate?
@Delizald,
./_autosetup
./configure --enable-server --disable-client --disable-manager
make
@AenBleidd I was able to replicate through WSL
@AenBleidd nevermind, I couldn't replicate. make
gave me output similar to the following but nothing related to deprecated OpenSLL
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 4 and 259 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_main.cpp: In function ‘int main(int, char**)’:
sched_main.cpp:423:55: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 228 [-Wformat-overflow=]
423 | sprintf(buf, "Server can't open log file (%s)", path);
| ^~ ~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from sched_main.cpp:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 30 and 4125 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_resend.cpp: In function ‘bool resend_lost_work()’:
sched_resend.cpp:260:52: warning: ‘%s’ directive writing up to 255 bytes into a region of size 239 [-Wformat-overflow=]
260 | sprintf(warning_msg, "Resent lost task %s", result.name);
| ^~ ~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from sched_resend.cpp:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 18 and 273 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_resend.cpp:248:42: warning: ‘%s’ directive writing up to 255 bytes into a region of size 232 [-Wformat-overflow=]
248 | "Didn't resend lost task %s (expired)", result.name
| ^~ ~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from sched_resend.cpp:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 35 and 290 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_send.cpp: In function ‘void send_user_messages()’:
sched_send.cpp:1270:57: warning: ‘%s’ directive writing up to 255 bytes into a region of size 229 [-Wformat-overflow=]
1270 | "No tasks are available for %s",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from sched_send.cpp:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 28 and 283 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_send.cpp: In function ‘int add_result_to_reply(SCHED_DB_RESULT&, WORKUNIT&, BEST_APP_VERSION*, bool)’:
sched_send.cpp:647:25: warning: ‘%s’ directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=]
647 | sprintf(buf, "<name>%s</name>\n", result.name);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from sched_send.cpp:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 15 and 270 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_send.cpp:650:28: warning: ‘%s’ directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=]
650 | sprintf(buf, "<wu_name>%s</wu_name>\n", wu.name);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from sched_send.cpp:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 21 and 276 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../vda/sched_vda.cpp: In function ‘int process_completed_upload(char*, CHUNK_LIST&)’:
../vda/sched_vda.cpp:175:19: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 256 [-Wformat-overflow=]
175 | sprintf(buf, "%s/data.vda", chunk_dir);
| ^~ ~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from ../vda/sched_vda.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 10 and 1033 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../vda/sched_vda.cpp:192:27: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 256 [-Wformat-overflow=]
192 | sprintf(buf, "%s/data.vda", chunk_dir);
| ^~ ~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from ../vda/sched_vda.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 10 and 1033 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../vda/sched_vda.cpp:200:34: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 253 [-Wformat-overflow=]
200 | sprintf(buf, "mv %s %s; chmod g+rw %s", path, dst_path, dst_path);
| ^~ ~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from ../vda/sched_vda.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 18 and 6159 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../vda/sched_vda.cpp:215:55: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 203 and 222 [-Wformat-overflow=]
215 | sprintf(buf, "host_id=%lu and physical_file_name='%s'",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from ../vda/sched_vda.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 36 and 310 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../vda/sched_vda.cpp: In function ‘int issue_transfer_commands(CHUNK_LIST&)’:
../vda/sched_vda.cpp:103:22: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
103 | sprintf(url, "%s/%s/data.vda", buf, chunk_dirs);
| ^~ ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from ../vda/sched_vda.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 11 and 1289 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../vda/sched_vda.cpp: In function ‘void handle_vda()’:
../vda/sched_vda.cpp:334:74: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 166 and 204 [-Wformat-overflow=]
334 | "host_id=%lu and vda_file_id=%lu and physical_file_name='%s'",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../lib/boinc_stdio.h:35,
from ../vda/sched_vda.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 54 and 347 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_version.cpp: In function ‘CLIENT_APP_VERSION* get_app_version_anonymous(APP&, bool, bool)’:
sched_version.cpp:240:17: warning: ‘%s’ directive writing up to 255 bytes into a region of size 195 [-Wformat-overflow=]
240 | "%s %s.",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../db/boinc_db.h:35,
from sched_version.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 63 and 318 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_types.cpp: In member function ‘int CLIENT_APP_VERSION::parse(XML_PARSER&)’:
sched_types.cpp:64:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct CLIENT_APP_VERSION’; use assignment or value-initialization instead [-Wclass-memaccess]
64 | memset(this, 0, sizeof(*this));
| ^
In file included from sched_main.h:21,
from sched_types.cpp:33:
sched_types.h:143:8: note: ‘struct CLIENT_APP_VERSION’ declared here
143 | struct CLIENT_APP_VERSION {
| ^~~~~~~~~~~~~~~~~~
sched_types.cpp: In member function ‘const char* SCHEDULER_REQUEST::parse(XML_PARSER&)’:
sched_types.cpp:308:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct HOST’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
308 | memset(&host, 0, sizeof(host));
| ^
In file included from ../db/boinc_db.h:40,
from sched_types.cpp:32:
../db/boinc_db_types.h:266:8: note: ‘struct HOST’ declared here
266 | struct HOST {
| ^~~~
sched_types.cpp: In constructor ‘SCHEDULER_REPLY::SCHEDULER_REPLY()’:
sched_types.cpp:734:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct HOST’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
734 | memset(&host, 0, sizeof(host));
| ^
In file included from ../db/boinc_db.h:40,
from sched_types.cpp:32:
../db/boinc_db_types.h:266:8: note: ‘struct HOST’ declared here
266 | struct HOST {
| ^~~~
sched_types.cpp: In member function ‘int SCHED_DB_RESULT::parse_from_client(XML_PARSER&)’:
sched_types.cpp:1292:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SCHED_DB_RESULT’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
1292 | memset(this, 0, sizeof(*this));
| ^
In file included from sched_main.h:21,
from sched_types.cpp:33:
sched_types.h:198:8: note: ‘struct SCHED_DB_RESULT’ declared here
198 | struct SCHED_DB_RESULT : DB_RESULT {
| ^~~~~~~~~~~~~~~
sched_types.cpp: In function ‘void get_rss_auth(USER&, char*)’:
sched_types.cpp:1588:22: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
1588 | sprintf(buf2, "%s%s%s", user.authenticator, user.passwd_hash, "notify_rss");
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from sched_types.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 11 and 521 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file_upload_handler.cpp: In function ‘int get_key(R_RSA_PUBLIC_KEY&)’:
file_upload_handler.cpp:602:21: warning: ‘/upload_public’ directive writing 14 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
602 | sprintf(buf, "%s/upload_public", config.key_dir);
| ^~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from file_upload_handler.cpp:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 15 and 270 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sched_config.cpp: In member function ‘int SCHED_CONFIG::parse(FILE*)’:
sched_config.cpp:78:34: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SCHED_CONFIG’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
78 | memset(this, 0, sizeof(*this));
| ^
In file included from sched_config.cpp:34:
sched_config.h:43:8: note: ‘struct SCHED_CONFIG’ declared here
43 | struct SCHED_CONFIG {
| ^~~~~~~~~~~~
sched_util_basic.cpp: In function ‘int dir_hier_path(const char*, const char*, int, char*, bool)’:
sched_util_basic.cpp:238:38: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
238 | snprintf(path, MAXPATHLEN, "%s/%s", dirpath, filename);
| ^
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from sched_util_basic.cpp:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4096
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_dump.cpp: In member function ‘virtual void ZIP_FILE::close()’:
db_dump.cpp:281:30: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 249 [-Wformat-overflow=]
281 | sprintf(buf, "zip -q %s", current_path);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_dump.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 8 and 4103 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_dump.cpp: In function ‘int main(int, char**)’:
db_dump.cpp:1315:36: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 253 [-Wformat-truncation=]
1315 | snprintf(buf, sizeof(buf), "cp %s %s/db_dump.xml", spec_filename, spec.output_dir);
| ^~ ~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_dump.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 17 and 527 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_dump.cpp:1337:26: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=]
1337 | sprintf(buf, "mv %s %s_%d_%d_%d_%d_%d_%d",
| ^~
1338 | spec.final_output_dir,
| ~~~~~~~~~~~~~~~~~~~~~
db_dump.cpp:1337:22: note: directive argument in the range [-2147481748, 2147483647]
1337 | sprintf(buf, "mv %s %s_%d_%d_%d_%d_%d_%d",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_dump.cpp:1337:22: note: directive argument in the range [-2147483647, 2147483647]
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_dump.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 17 and 587 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_dump.cpp:1353:22: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=]
1353 | sprintf(buf, "mv %s %s", spec.output_dir, spec.final_output_dir);
| ^~ ~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_dump.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 5 and 515 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_purge.cpp: In function ‘void open_archive(const char*, void*&)’:
db_purge.cpp:282:62: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 228 [-Wformat-overflow=]
282 | sprintf(errstr, "could not create directory '%s': %s\n",
| ^~
283 | path, strerror(errno));
| ~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_purge.cpp:33:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output 33 or more bytes (assuming 4128) into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_purge.cpp:316:51: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 232 [-Wformat-overflow=]
316 | sprintf(buf, "Can't open archive file %s %s\n",
| ^~
317 | path, errno?strerror(errno):""
| ~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_purge.cpp:33:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 27 and 4122 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
db_purge.cpp: In function ‘int main(int, char**)’:
db_purge.cpp:900:35: warning: ‘%s’ directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=]
900 | sprintf(buf, "where name='%s'", app_name);
| ^~ ~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from db_purge.cpp:33:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 14 and 269 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
feeder.cpp: In function ‘bool get_job_from_db(DB_WORK_ITEM&, int, int&, int&)’:
feeder.cpp:249:35: warning: ‘ and r1.appid=’ directive writing 14 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
249 | sprintf(select_clause, "%s and r1.appid=%lu",
| ^~~~~~~~~~~~~~
feeder.cpp:249:32: note: using the range [0, 18446744073709551615] for directive argument
249 | sprintf(select_clause, "%s and r1.appid=%lu",
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from feeder.cpp:97:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 16 and 290 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file_deleter.cpp: In function ‘int wu_delete_files(WORKUNIT&)’:
file_deleter.cpp:201:41: warning: ‘.gz’ directive writing 3 bytes into a region of size between 1 and 4096 [-Wformat-overflow=]
201 | sprintf(path_gz, "%s.gz", path);
| ^~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from file_deleter.cpp:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 4 and 4099 bytes into a destination of size 4096
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file_deleter.cpp:212:46: warning: ‘.md5’ directive writing 4 bytes into a region of size between 1 and 4096 [-Wformat-overflow=]
212 | sprintf(path_md5, "%s.md5", path);
| ^~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from file_deleter.cpp:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 5 and 4100 bytes into a destination of size 4096
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file_deleter.cpp: In function ‘bool do_pass(bool)’:
file_deleter.cpp:345:37: warning: ‘%s’ directive writing up to 255 bytes into a region of size 230 [-Wformat-overflow=]
345 | "where file_delete_state=%d %s limit %d",
| ^~
346 | retry_error?FILE_DELETE_ERROR:FILE_DELETE_READY,
347 | clause, RESULTS_PER_ENUM
| ~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from file_deleter.cpp:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 38 and 293 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file_deleter.cpp:399:37: warning: ‘%s’ directive writing up to 255 bytes into a region of size 230 [-Wformat-overflow=]
399 | "where file_delete_state=%d %s limit %d",
| ^~
400 | retry_error?FILE_DELETE_ERROR:FILE_DELETE_READY,
401 | clause, WUS_PER_ENUM
| ~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from file_deleter.cpp:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 37 and 292 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file_deleter.cpp: In function ‘int main(int, char**)’:
file_deleter.cpp:608:33: warning: ‘%s’ directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=]
608 | sprintf(buf, "where name='%s'", app.name);
| ^~ ~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from file_deleter.cpp:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 14 and 269 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
assimilator.cpp: In function ‘bool do_pass(APP&)’:
assimilator.cpp:98:50: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 200 and 219 [-Wformat-overflow=]
98 | "where appid=%ld and assimilate_state=%d %s limit %d",
| ^~
99 | app.id, ASSIMILATE_READY, mod_clause,
| ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../db/boinc_db.h:35,
from assimilator.cpp:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 46 and 330 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
assimilator.cpp: In function ‘int main(int, char**)’:
assimilator.cpp:309:31: warning: ‘%s’ directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=]
309 | sprintf(buf, "where name='%s'", app.name);
| ^~ ~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../db/boinc_db.h:35,
from assimilator.cpp:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 14 and 269 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
validator.cpp: In function ‘int main_loop()’:
validator.cpp:815:31: warning: ‘%s’ directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=]
815 | sprintf(buf, "where name='%s'", app_name);
| ^~ ~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from validator.cpp:57:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 14 and 269 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
single_job_assimilator.cpp: In function ‘int assimilate_handler(WORKUNIT&, std::vector<RESULT>&, RESULT&)’:
single_job_assimilator.cpp:103:26: warning: ‘/job_summary_’ directive writing 13 bytes into a region of size between 1 and 4096 [-Wformat-overflow=]
103 | sprintf(filename, "%s/job_summary_%lu", job_dir, wu.id);
| ^~~~~~~~~~~~~
single_job_assimilator.cpp:103:23: note: using the range [0, 18446744073709551615] for directive argument
103 | sprintf(filename, "%s/job_summary_%lu", job_dir, wu.id);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from single_job_assimilator.cpp:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 15 and 4129 bytes into a destination of size 4096
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
single_job_assimilator.cpp:134:38: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
134 | sprintf(copy_path, "%s/%s", job_dir, logical_name.c_str());
| ^
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from single_job_assimilator.cpp:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4096
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trickle_handler.cpp: In function ‘bool do_trickle_scan()’:
trickle_handler.cpp:70:34: warning: ‘%s’ directive writing up to 255 bytes into a region of size 241 [-Wformat-overflow=]
70 | sprintf(buf, "where variety='%s' and handled=%d", variety, handled_enum);
| ^~ ~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../db/boinc_db.h:35,
from trickle_handler.cpp:37:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 31 and 296 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trickle_deadline.cpp: In function ‘int handle_trickle(MSG_FROM_HOST&)’:
trickle_deadline.cpp:101:32: warning: ‘%s’ directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=]
101 | sprintf(buf, " where name='%s' and hostid=%lu", task_name, mfh.hostid);
| ^~ ~~~~~~~~~
trickle_deadline.cpp:101:18: note: using the range [0, 18446744073709551615] for directive argument
101 | sprintf(buf, " where name='%s' and hostid=%lu", task_name, mfh.hostid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/util.h:24,
from trickle_deadline.cpp:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 28 and 302 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trickle_echo.cpp: In function ‘int handle_trickle(MSG_FROM_HOST&)’:
trickle_echo.cpp:55:10: warning: ‘%s’ directive writing up to 262143 bytes into a region of size 262129 [-Wformat-overflow=]
55 | "%s"
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../db/boinc_db.h:35,
from trickle_handler.h:18,
from trickle_echo.cpp:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 32 and 262175 bytes into a destination of size 262144
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
concat.cpp: In function ‘int main(int, char**)’:
concat.cpp:122:15: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
122 | fscanf(state, "%d %d", &file_num, &nchars);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
create_work.cpp: In function ‘int main(int, char**)’:
create_work.cpp:371:54: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
371 | snprintf(jd.wu.name, sizeof(jd.wu.name), "%s_%d_%f", app.name, getpid(), dtime());
| ^~
create_work.cpp:371:50: note: assuming directive output of 8 bytes
371 | snprintf(jd.wu.name, sizeof(jd.wu.name), "%s_%d_%f", app.name, getpid(), dtime());
| ^~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from create_work.cpp:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 7 and 586 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
create_work.cpp:374:79: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 246 [-Wformat-truncation=]
374 | snprintf(jd.wu_template_file, sizeof(jd.wu_template_file), "templates/%s_in", app.name);
| ^~ ~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from create_work.cpp:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 14 and 269 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
create_work.cpp:377:87: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 246 [-Wformat-truncation=]
377 | snprintf(jd.result_template_file, sizeof(jd.result_template_file), "templates/%s_out", app.name);
| ^~ ~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from create_work.cpp:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 15 and 270 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
create_work.cpp:473:68: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
473 | snprintf(jd2.wu.name, sizeof(jd2.wu.name), "%s_%d", jd.wu.name, j);
| ^~
create_work.cpp:473:64: note: directive argument in the range [0, 2147483647]
473 | snprintf(jd2.wu.name, sizeof(jd2.wu.name), "%s_%d", jd.wu.name, j);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from create_work.cpp:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 3 and 267 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
create_work.cpp:449:68: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
449 | snprintf(jd2.wu.name, sizeof(jd2.wu.name), "%s_%d", jd.wu.name, j);
| ^~
create_work.cpp:449:64: note: directive argument in the range [0, 2147483647]
449 | snprintf(jd2.wu.name, sizeof(jd2.wu.name), "%s_%d", jd.wu.name, j);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from create_work.cpp:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 3 and 267 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
remote_submit_test.cpp: In function ‘void get_auth()’:
remote_submit_test.cpp:64:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
64 | fread((void*)authenticator, 1, 256, f);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/remote_submit.cpp: In function ‘int get_output_file(const char*, const char*, const char*, int, const char*, std::string&)’:
../lib/remote_submit.cpp:952:88: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 973 [-Wformat-truncation=]
952 | snprintf(url, sizeof(url), "%sget_output.php?cmd=workunit_file&auth_str=%s&wu_name=%s&file_num=%d",
| ^~
953 | project_url, authenticator, job_name_esc, file_num
| ~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /home/david/anaconda3/include/curl/curl.h:46,
from ../lib/remote_submit.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output 63 or more bytes (assuming 1086) into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/remote_submit.cpp:960:52: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1009 [-Wformat-truncation=]
960 | snprintf(buf, sizeof(buf), "couldn't fetch %s: %d", url, retval);
| ^~ ~~~
In file included from /usr/include/stdio.h:867,
from /home/david/anaconda3/include/curl/curl.h:46,
from ../lib/remote_submit.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 20 and 1043 bytes into a destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stage_file_native.cpp: In function ‘int stage_file(char*, SCHED_CONFIG&, bool, bool, bool)’:
stage_file_native.cpp:63:1: warning: declaration of ‘config’ shadows a global declaration [-Wshadow]
63 | ) {
| ^
In file included from stage_file_native.h:21,
from stage_file_native.cpp:18:
../sched/sched_config.h:231:21: note: shadowed declaration is here
231 | extern SCHED_CONFIG config;
| ^~~~~~
stage_file_native.cpp:65:10: warning: unused variable ‘md5_file_path’ [-Wunused-variable]
65 | char md5_file_path[MAXPATHLEN], md5_file_hash[MD5_LEN];
| ^~~~~~~~~~~~~
stage_file_native.cpp:65:37: warning: unused variable ‘md5_file_hash’ [-Wunused-variable]
65 | char md5_file_path[MAXPATHLEN], md5_file_hash[MD5_LEN];
| ^~~~~~~~~~~~~
stage_file_native.cpp:67:12: warning: unused variable ‘nbytes’ [-Wunused-variable]
67 | double nbytes;
| ^~~~~~
stage_file_native.cpp: In function ‘void run_stage_file(char*, SCHED_CONFIG&, bool, bool, bool)’:
stage_file_native.cpp:180:1: warning: declaration of ‘config’ shadows a global declaration [-Wshadow]
180 | ) {
| ^
In file included from stage_file_native.h:21,
from stage_file_native.cpp:18:
../sched/sched_config.h:231:21: note: shadowed declaration is here
231 | extern SCHED_CONFIG config;
| ^~~~~~
stage_file_native.cpp: In function ‘int stage_file(char*, SCHED_CONFIG&, bool, bool, bool)’:
stage_file_native.cpp:137:42: warning: ‘.gz’ directive output may be truncated writing 3 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
137 | snprintf(gz_path, MAXPATHLEN, "%s.gz", dl_hier_path);
| ^~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../sched/sched_config.h:23,
from stage_file_native.h:21,
from stage_file_native.cpp:18:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 4 and 4099 bytes into a destination of size 4096
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stage_file_native.cpp: In function ‘int main(int, char**)’:
stage_file_native.cpp:234:51: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
234 | snprintf(file_path, MAXPATHLEN, "%s/%s", path, file_name.c_str());
| ^
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../sched/sched_config.h:23,
from stage_file_native.h:21,
from stage_file_native.cpp:18:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 4096
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda.cpp: In function ‘int handle_add(const char*)’:
vda.cpp:125:19: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 1024 [-Wformat-overflow=]
125 | sprintf(buf, "%s/boinc_meta.txt", dir);
| ^~ ~~~
In file included from /usr/include/stdio.h:867,
from vda.cpp:23:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 16 and 4111 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp: In member function ‘int META_CHUNK::encode(bool)’:
vda_lib2.cpp:210:13: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=]
210 | "cd %s; /mydisks/b/users/boincadm/vda_test/encoder %s %d %d cauchy_good 32 1024 500000 | grep Encoding",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 104 and 1147 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:221:34: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1013 [-Wformat-overflow=]
221 | sprintf(cmd, "chmod g+wx %s/Coding", dir);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 19 and 1042 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:234:37: warning: ‘/Coding/’ directive writing 8 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
234 | sprintf(target_path, "%s/Coding/%s", dir, enc_filename);
| ^~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 9 and 2055 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:235:35: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
235 | sprintf(dir_name, "%s/%d", dir, i);
| ^~
vda_lib2.cpp:235:31: note: directive argument in the range [0, 2147483647]
235 | sprintf(dir_name, "%s/%d", dir, i);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 3 and 1035 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:241:36: warning: ‘%s’ directive writing 8 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
241 | sprintf(link_name, "%s/%s", dir_name, DATA_FILENAME);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 10 and 1033 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp: In member function ‘int META_CHUNK::decode()’:
vda_lib2.cpp:276:30: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=]
276 | sprintf(cmd, "mv %s/Coding/%s %s/Coding/decode_temp",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 32 and 3101 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:285:13: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=]
285 | "cd %s; /mydisks/b/users/boincadm/vda_test/decoder %s | grep Decoding",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 73 and 1096 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:296:26: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=]
296 | sprintf(cmd, "mv %s/Coding/decode_temp %s/Coding/%s",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 32 and 3101 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:307:26: warning: ‘/data.vda’ directive writing 9 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
307 | sprintf(linkpath, "%s/data.vda", dir);
| ^~~~~~~~~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 10 and 1033 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp:314:22: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1021 [-Wformat-overflow=]
314 | sprintf(cmd, "mv %s/Coding/data_decoded.vda %s", dir, filepath);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 29 and 2075 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vda_lib2.cpp: In member function ‘int CHUNK::start_upload_from_host(VDA_CHUNK_HOST&)’:
vda_lib2.cpp:428:66: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 166 and 204 [-Wformat-overflow=]
428 | "vda_file_id=%lu and host_id=%lu and physical_file_name='%s'",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 54 and 347 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from vda_lib2.cpp:38:
vda_lib.h: In member function ‘int CHUNK::assign()’:
vda_lib.h:231:26: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 240 and 250 [-Wformat-overflow=]
231 | sprintf(buf, "vda_%d_%s_%s", hostid, chunk_name, file_name);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from ../lib/filesys.h:29,
from vda_lib2.cpp:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 8 and 528 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stats.cpp: In member function ‘void STATS_ITEM::sample(double, bool, double)’:
stats.cpp:56:29: warning: ‘: ’ directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
56 | sprintf(buf, "%s: %f Mbps -> %f Mbps\n", name, value/1e6, v/1e6);
| ^~
stats.cpp:56:26: note: assuming directive output of 8 bytes
56 | sprintf(buf, "%s: %f Mbps -> %f Mbps\n", name, value/1e6, v/1e6);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
stats.cpp:56:26: note: assuming directive output of 8 bytes
In file included from /usr/include/stdio.h:867,
from stats.cpp:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 24 and 907 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stats.cpp:60:29: warning: ‘: ’ directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
60 | sprintf(buf, "%s: %.0f -> %.0f\n", name, value, v);
| ^~
In file included from /usr/include/stdio.h:867,
from stats.cpp:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 10 and 883 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stats.cpp:52:29: warning: ‘: ’ directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
52 | sprintf(buf, "%s: %f GB -> %f GB\n", name, value/1e9, v/1e9);
| ^~
stats.cpp:52:26: note: assuming directive output of 8 bytes
52 | sprintf(buf, "%s: %f GB -> %f GB\n", name, value/1e9, v/1e9);
| ^~~~~~~~~~~~~~~~~~~~~~
stats.cpp:52:26: note: assuming directive output of 8 bytes
In file included from /usr/include/stdio.h:867,
from stats.cpp:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 20 and 903 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vdad.cpp: In function ‘int handle_file(VDA_FILE_AUX&, DB_VDA_FILE&)’:
vdad.cpp:104:61: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 235 and 1000 [-Wformat-overflow=]
104 | sprintf(buf, "truncate %s/%s --reference %s/%s",
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from ../db/boinc_db.h:35,
from vdad.cpp:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 25 and 1045 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ssim.cpp: In constructor ‘CHUNK::CHUNK(META_CHUNK*, double, int)’:
ssim.cpp:430:23: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 0 and 255 [-Wformat-overflow=]
430 | sprintf(name, "%s.%d", parent->name, index);
| ^~
In file included from /usr/include/stdio.h:867,
from stats.h:25,
from ssim.cpp:57:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 3 and 268 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ssim.cpp: In member function ‘int CHUNK::assign()’:
ssim.cpp:455:47: warning: ‘%s’ directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=]
455 | sprintf(c->physical_file_name, "chunk %s on host %d", name, h->id);
| ^~
In file included from /usr/include/stdio.h:867,
from stats.h:25,
from ssim.cpp:57:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 17 and 282 bytes into a destination of size 256
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: tag 'server_release/1.x/1.x.0' is really 'server_release/1.3/1.3.0' here
(base) david@LAPTOP-K8E344BM:/mnt/d/HPOmen/Github/boinc$
Perhaps I missed something or compiling under WSL affected the results?
These warning happen when compiling with OpenSSL 3.0+. Examples of the needed changes: hashing: https://stackoverflow.com/questions/69806220/advice-needed-for-migration-of-low-level-openssl-api-to-high-level-openssl-apis encryption: https://stackoverflow.com/questions/74175833/how-to-replace-deprecated-rsa-low-level-openssl-3-0-apis-with-equivalent-evp-fun
I could do these but would be very happy if someone else did.
Kind of weak of OpenSSL to make non-backward-compatible changes.
@Delizald, the same log can be seen on our CI: https://github.com/BOINC/boinc/actions/runs/7832659573/job/21371873932
was able to finally replicate locally. For some reason make was grabbing an openssl version that conda installed in my linux shell. Had to remove that and now I can see the deprecation warnings