Task #119504 - added.err
back to task #119504download
Error: COMPILER_WARNING (CWE-704):
unbound-1.25.1/daemon/remote.c: scope_hint: In function 'add_open'
unbound-1.25.1/daemon/remote.c:310:27: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 310 | char* s = strchr(ip, '@');
# | ^~~~~~
# 308| }
# 309| } else {
# 310|-> char* s = strchr(ip, '@');
# 311| char newif[128];
# 312| if(s) {
Error: COMPILER_WARNING (CWE-704):
unbound-1.25.1/daemon/remote.c:310:27: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 308| }
# 309| } else {
# 310|-> char* s = strchr(ip, '@');
# 311| char newif[128];
# 312| if(s) {
Error: CPPCHECK_WARNING (CWE-457):
unbound-1.25.1/services/mesh.c:307: warning[uninitvar]: Uninitialized variable: &age
# 305| &m->first_reply_time);
# 306| if(!m->has_first_reply_time ||
# 307|-> timeval_smaller(&mesh->jostle_max, &age)) {
# 308| /* its a goner */
# 309| log_nametypeclass(VERB_ALGO, "query jostled out to "
Error: GCC_ANALYZER_WARNING (CWE-476):
unbound-1.25.1/util/data/msgencode.c:913:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'prev'
unbound-1.25.1/util/data/msgencode.c:1112:1: enter_function: entry to 'extended_error_encode'
unbound-1.25.1/util/data/msgencode.c:1144:11: branch_true: following 'true' branch...
unbound-1.25.1/util/data/msgencode.c:1155:35: call_function: calling 'calc_edns_field_size' from 'extended_error_encode'
unbound-1.25.1/util/data/msgencode.c:1155:35: return_function: returning to 'extended_error_encode' from 'calc_edns_field_size'
unbound-1.25.1/util/data/msgencode.c:1156:28: call_function: calling 'calc_ede_option_size' from 'extended_error_encode'
unbound-1.25.1/util/data/msgencode.c:1156:28: return_function: returning to 'extended_error_encode' from 'calc_ede_option_size'
unbound-1.25.1/util/data/msgencode.c:1157:19: branch_false: following 'false' branch...
unbound-1.25.1/util/data/msgencode.c:1159:51: branch_false: ...to here
unbound-1.25.1/util/data/msgencode.c:1159:24: branch_true: following 'true' branch...
unbound-1.25.1/util/data/msgencode.c:1160:25: call_function: inlined call to 'ede_trim_text' from 'extended_error_encode'
# 911| * this point from the other branches;
# 912| * cut this option off */
# 913|-> prev->next = curr->next;
# 914| curr = curr->next;
# 915| } else if(curr->opt_len > 2) {