Task #119504 - fixed.err

back to task #119504
download
Error: SHELLCHECK_WARNING (CWE-457):
/usr/lib/dracut/modules.d/99unbound/module-setup.sh:20:18: warning[SC2154]: moddir is referenced but not assigned.
#   18|       # there is a synchronization point when other services are able
#   19|       # to make queries
#   20|->     inst_simple "$moddir"/unbound-initrd.conf /etc/systemd/system/unbound.service.d/unbound-initrd.conf
#   21|   
#   22|       # /etc and /var/lib do not have its variables

Error: SHELLCHECK_WARNING (CWE-457):
/usr/lib/dracut/modules.d/99unbound/module-setup.sh:43:27: warning[SC2154]: initdir is referenced but not assigned.
#   41|       unbound-control
#   42|   
#   43|->     $SYSTEMCTL -q --root "$initdir" enable unbound.service
#   44|   }

Error: GCC_ANALYZER_WARNING (CWE-775):
unbound-1.24.2/pythonmod/pythonmod.c:137:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*pe.fname, "r")'
unbound-1.24.2/pythonmod/pythonmod.c:294:5: enter_function: entry to 'pythonmod_init'
unbound-1.24.2/pythonmod/pythonmod.c:309:7: branch_false: following 'false' branch (when 'pe' is non-NULL)...
unbound-1.24.2/pythonmod/pythonmod.c:315:4: branch_false: ...to here
unbound-1.24.2/pythonmod/pythonmod.c:319:11: branch_true: following 'true' branch (when 'cfg_item' is non-NULL)...
unbound-1.24.2/pythonmod/pythonmod.c:320:23: branch_true: ...to here
unbound-1.24.2/pythonmod/pythonmod.c:326:6: branch_false: following 'false' branch...
unbound-1.24.2/pythonmod/pythonmod.c:436:16: acquire_resource: opened here
unbound-1.24.2/pythonmod/pythonmod.c:438:7: branch_false: following 'false' branch...
unbound-1.24.2/pythonmod/pythonmod.c:445:17: branch_false: ...to here
unbound-1.24.2/pythonmod/pythonmod.c:449:4: call_function: calling 'clean_python_function_objects' from 'pythonmod_init'
unbound-1.24.2/pythonmod/pythonmod.c:449:4: return_function: returning to 'pythonmod_init' from 'clean_python_function_objects'
unbound-1.24.2/pythonmod/pythonmod.c:137:20: danger: 'fopen(*pe.fname, "r")' leaks here; was opened at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  135|   
#  136|   	for(i=0; i<sizeof(function_names)/sizeof(function_names[0]); i++) {
#  137|-> 		if(PyDict_GetItemString(dict, function_names[i]) != NULL) {
#  138|   			PyDict_DelItemString(dict, function_names[i]);
#  139|   		}

Error: GCC_ANALYZER_WARNING (CWE-401):
unbound-1.24.2/pythonmod/pythonmod.c:137:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*pe.fname, "r")'
unbound-1.24.2/pythonmod/pythonmod.c:294:5: enter_function: entry to 'pythonmod_init'
unbound-1.24.2/pythonmod/pythonmod.c:309:7: branch_false: following 'false' branch (when 'pe' is non-NULL)...
unbound-1.24.2/pythonmod/pythonmod.c:315:4: branch_false: ...to here
unbound-1.24.2/pythonmod/pythonmod.c:319:11: branch_true: following 'true' branch (when 'cfg_item' is non-NULL)...
unbound-1.24.2/pythonmod/pythonmod.c:320:23: branch_true: ...to here
unbound-1.24.2/pythonmod/pythonmod.c:326:6: branch_false: following 'false' branch...
unbound-1.24.2/pythonmod/pythonmod.c:436:16: acquire_memory: allocated here
unbound-1.24.2/pythonmod/pythonmod.c:438:7: branch_false: following 'false' branch...
unbound-1.24.2/pythonmod/pythonmod.c:445:17: branch_false: ...to here
unbound-1.24.2/pythonmod/pythonmod.c:449:4: call_function: calling 'clean_python_function_objects' from 'pythonmod_init'
unbound-1.24.2/pythonmod/pythonmod.c:449:4: return_function: returning to 'pythonmod_init' from 'clean_python_function_objects'
unbound-1.24.2/pythonmod/pythonmod.c:137:20: danger: 'fopen(*pe.fname, "r")' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  135|   
#  136|   	for(i=0; i<sizeof(function_names)/sizeof(function_names[0]); i++) {
#  137|-> 		if(PyDict_GetItemString(dict, function_names[i]) != NULL) {
#  138|   			PyDict_DelItemString(dict, function_names[i]);
#  139|   		}