[clamav-users] ClamAV® blog: ClamAV 0.103.0 released!
Arjen de Korte
build+clamav at de-korte.org
Tue Sep 15 18:22:37 UTC 2020
ClamAV 0.103.0 builds (and runs) fine most of the time, but I do see
(infrequent) failing checks on the build servers for openSUSE. This
could be a race condition in the tests and might depend on the number
of cores or CPU of the buildserver it runs on.
One thing that does concern me slightly, is the number of -Wformat
warning in the tests, for example
[ 166s] In file included from check_clamav.c:11:
[ 166s] check_clamav.c: In function 'diff_file_mem':
[ 166s] check_clamav.c:1267:26: warning: format '%d' expects argument
of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned
int'} [-Wformat=]
[ 166s] 1267 | ck_assert_msg(!!buf, "unable to malloc buffer: %d", len);
[ 166s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
[ 166s] | |
[ 166s] |
size_t {aka long unsigned int}
[ 166s] check_clamav.c:1267:53: note: format string is defined here
[ 166s] 1267 | ck_assert_msg(!!buf, "unable to malloc buffer: %d", len);
[ 166s] | ~^
[ 166s] | |
[ 166s] | int
[ 166s] | %ld
There are many more which could potentially be an issue.
More information about the clamav-users
mailing list