Snippets for rspamd 4.1.5 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/community/rspamd/rspamd-4.1.5-r0.log.
-
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/libucl/ucl_msgpack.c:105:51: warning: unused variable 'mask_negative' [-Wunused-variable] 105 | const unsigned char mask_positive = 0x7f, mask_negative = 0xe0, | ^~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/test/rspamd_radix_test.c:193:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 193 | val = btrie_lookup(tree, t->addr, t->len * NBBY); | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/test/rspamd_radix_test.c:198:29: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 198 | val = btrie_lookup(tree, t->naddr, t->len * NBBY); | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libutil/heap.h:223:36: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits] 223 | else if ((new_pri) > old_pri) { \ | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/kann/kann.c:953:24: warning: potential null pointer dereference [-Wnull-dereference] 953 | cost->ext_flag |= KANN_F_COST;
-
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/kann/kann.c:953:13: warning: potential null pointer dereference [-Wnull-dereference] 953 | cost->ext_flag |= KANN_F_COST; | ~~~~^~~~~~~~~~ -
/usr/include/glib-2.0/glib/gstring.h:78:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 74 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 75 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 76 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 77 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 78 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 79 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/libucl/ucl_util.c:1154:57: warning: '.sig' directive output may be truncated writing 4 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 1154 | snprintf (filebuf, sizeof (filebuf), "%s.sig", realbuf); | ^~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libmime/mime_expressions.c:1481:50: warning: '/*' within comment [-Wcomment] 1481 | * 2. MIME structure: a sibling leaf text/* (non-html) part in a
-
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libmime/mime_expressions.c:1514:80: warning: '/*' within comment [-Wcomment] 1514 | /* Check siblings for leaf text/* non-html parts */
-
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libmime/mime_expressions.c:1523:71: warning: '/*' within comment [-Wcomment] 1523 | /* A leaf text/* part that isn't html is a
-
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/libucl/ucl_parser.c:1568:78: warning: 'end' may be used uninitialized [-Wmaybe-uninitialized] 1568 | &key, end - c, need_unescape, parser->flags & UCL_PARSER_KEY_LOWERCASE, | ~~~~^~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libmime/scan_result.c:1148:21: warning: variable 'kk' set but not used [-Wunused-but-set-variable] 1148 | const char *kk; | ^~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/plugins/chartable.cxx:2013:46: warning: potential null pointer dereference [-Wnull-dereference] 2013 | if (MESSAGE_FIELD(task, text_parts)->len == 0) { -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libserver/http/http_connection.c:786:35: warning: 'request_method' may be used uninitialized [-Wmaybe-uninitialized] 786 | priv->msg->method = request_method; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libserver/fuzzy_storage_ratelimit.c:305:17: warning: enumeration value 'RSPAMD_FUZZY_EXT_SENDER_FACTS' not handled in switch [-Wswitch] 305 | switch (ext->ext) { | ^~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/replxx/src/replxx.cxx:272:47: warning: function 'void replxx::Replxx::print(const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 272 | int size = static_cast<int>( vsnprintf( nullptr, 0, format_, ap ) ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/replxx/src/replxx.cxx:276:18: warning: function 'void replxx::Replxx::print(const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 276 | vsnprintf( buf.get(), static_cast<size_t>( size + 1 ), format_, ap ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/replxx/src/replxx.cxx:374:47: warning: function 'int replxx_print(Replxx*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 374 | int size = static_cast<int>( vsnprintf( nullptr, 0, format_, ap ) ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/contrib/replxx/src/replxx.cxx:378:18: warning: function 'int replxx_print(Replxx*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 378 | vsnprintf( buf.get(), static_cast<size_t>( size + 1 ), format_, ap ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libserver/fuzzy_backend/fuzzy_backend_redis.c:571:16: warning: unused variable 'value' [-Wunused-variable] 571 | gulong value; | ^~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libserver/milter.c:130:78: warning: potential null pointer dereference [-Wnull-dereference] 130 | (int) session->rcpts->len); | ~~~~~~~~~~~~~~^~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libserver/html/html_entities.cxx:2523:30: warning: 'seen_digit_only' may be used uninitialized [-Wmaybe-uninitialized] 2523 | else if (seen_digit_only != do_mixed && | ^~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/lua/lua_http.c:1339:12: warning: 'ev_base' may be used uninitialized [-Wmaybe-uninitialized] 1339 | if (ev_base == NULL) { | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libutil/printf.c:439:26: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 439 | return ((char *) memcpy(buf, p, len)) + len; | ^~~~~~~~~~~~~~~~~~~ -
/usr/include/glib-2.0/glib/gmacros.h:1279:7: warning: 'mp' may be used uninitialized [-Wmaybe-uninitialized] 1279 | if (expr) \ | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libutil/mem_pool.c:1291:75: warning: cast between incompatible function types from 'int (*)(pthread_mutex_t *)' to 'void (*)(void *)' [-Wcast-function-type] 1291 | (rspamd_mempool_destruct_t) pthread_mutex_destroy, res); | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libutil/mem_pool.c:1323:75: warning: cast between incompatible function types from 'int (*)(pthread_rwlock_t *)' to 'void (*)(void *)' [-Wcast-function-type] 1323 | (rspamd_mempool_destruct_t) pthread_rwlock_destroy, res); | ^ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libcryptobox/cryptobox.c:1403:18: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized] 1403 | uint64_t ret; | ^~~ -
/usr/include/c++/15.2.0/bits/move.h:235:11: warning: '*(rspamd_statfile**)<unknown>' may be used uninitialized [-Wmaybe-uninitialized] 235 | _Tp __tmp = _GLIBCXX_MOVE(__a); | ^~~~~ -
/home/buildozer/aports/community/rspamd/src/rspamd-4.1.5/src/libserver/hyperscan_tools.cxx:709:7: warning: multi-line comment [-Wcomment] 709 | #endif// defined(HS_MAJOR) && defined(HS_MINOR) && HS_MAJOR >= 5 && HS_MINOR >= 4 \ | ^ -
/usr/include/c++/15.2.0/bits/move.h:235:11: warning: '((std::remove_reference<bool&>::type*)this)[12]' is used uninitialized [-Wuninitialized] 235 | _Tp __tmp = _GLIBCXX_MOVE(__a); | ^~~~~ -
/usr/include/c++/15.2.0/bits/move.h:235:11: warning: '<unnamed>.rspamd::util::raii_locked_file::<unnamed>.rspamd::util::raii_file::temp' may be used uninitialized [-Wmaybe-uninitialized] 235 | _Tp __tmp = _GLIBCXX_MOVE(__a); | ^~~~~