cups-2.4.11-2.fc42
List of Findings
Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/cups-config:17:1: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/cups-config:18:1: warning[SC2034]: exec_prefix appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/cups-config:19:1: warning[SC2034]: bindir appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/bin/cups-config:24:1: warning[SC2034]: datarootdir appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/usr/bin/cups-config:25:1: warning[SC2034]: datadir appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/bin/cups-config:26:1: warning[SC2034]: sysconfdir appears unused. Verify use (or export if used externally).
Error: CPPCHECK_WARNING (CWE-401): [#def7]
cups-2.4.11-build/cups-2.4.11/backend/dnssd.c:883: error[memleak]: Memory leak: device.fullName
Error: CPPCHECK_WARNING (CWE-252): [#def8]
cups-2.4.11-build/cups-2.4.11/backend/snmp.c:797: error[leakReturnValNotUsed]: Return value of allocation function 'add_array' is not stored.
Error: CPPCHECK_WARNING (CWE-252): [#def9]
cups-2.4.11-build/cups-2.4.11/backend/snmp.c:830: error[leakReturnValNotUsed]: Return value of allocation function 'add_array' is not stored.
Error: CPPCHECK_WARNING (CWE-252): [#def10]
cups-2.4.11-build/cups-2.4.11/backend/snmp.c:833: error[leakReturnValNotUsed]: Return value of allocation function 'add_array' is not stored.
Error: CPPCHECK_WARNING (CWE-252): [#def11]
cups-2.4.11-build/cups-2.4.11/backend/snmp.c:879: error[leakReturnValNotUsed]: Return value of allocation function 'add_array' is not stored.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
cups-2.4.11-build/cups-2.4.11/cgi-bin/help-index.c: scope_hint: In function ‘help_load_file’
cups-2.4.11-build/cups-2.4.11/cgi-bin/help-index.c:1041:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
cups-2.4.11-build/cups-2.4.11/cgi-bin/help-index.c:1041:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
Error: CPPCHECK_WARNING (CWE-457): [#def14]
cups-2.4.11-build/cups-2.4.11/cgi-bin/help-index.c:1250: error[uninitvar]: Uninitialized variable: diff
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
cups-2.4.11-build/cups-2.4.11/cgi-bin/ipp-var.c: scope_hint: In function ‘cgiGetAttributes’
cups-2.4.11-build/cups-2.4.11/cgi-bin/ipp-var.c:120:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘attrs[i]’ where non-null expected
cups-2.4.11-build/cups-2.4.11/cups/http.h:21: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cups/ipp.h:19: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cups/cups.h:28: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cgi-bin/cgi.h:27: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cgi-bin/cgi-private.h:16: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cgi-bin/ipp-var.c:16: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: COMPILER_WARNING: [#def16]
cups-2.4.11-build/cups-2.4.11/cgi-bin/search.c: scope_hint: In function ‘cgiCompileSearch’
cups-2.4.11-build/cups-2.4.11/cgi-bin/search.c:191:29: warning[-Wuse-after-free]: pointer ‘s_68’ may be used after ‘realloc’
cups-2.4.11-build/cups-2.4.11/cgi-bin/search.c:179:24: note: call to ‘realloc’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
cups-2.4.11-build/cups-2.4.11/cgi-bin/var.c: scope_hint: In function ‘cgi_add_variable.part.0’
cups-2.4.11-build/cups-2.4.11/cgi-bin/var.c:642:7: warning[-Wanalyzer-malloc-leak]: leak of ‘temp_vars’
Error: CPPCHECK_WARNING (CWE-457): [#def18]
cups-2.4.11-build/cups-2.4.11/cgi-bin/var.c:691: warning[uninitvar]: Uninitialized variables: &key.nvalues, &key.avalues, &key.values
Error: CPPCHECK_WARNING (CWE-401): [#def19]
cups-2.4.11-build/cups-2.4.11/cups/array.c:426: error[memleak]: Memory leak: da.elements
Error: CPPCHECK_WARNING (CWE-401): [#def20]
cups-2.4.11-build/cups-2.4.11/cups/array.c:772: error[memleak]: Memory leak: a.hash
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
cups-2.4.11-build/cups-2.4.11/cups/array.c: scope_hint: In function ‘cups_array_find’
cups-2.4.11-build/cups-2.4.11/cups/array.c:1218:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
cups-2.4.11-build/cups-2.4.11/cups/array.c:1264:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def23]
cups-2.4.11-build/cups-2.4.11/cups/dest.c: scope_hint: In function ‘cups_compare_dests’
cups-2.4.11-build/cups-2.4.11/cups/dest.c:2598:42: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
Error: CPPCHECK_WARNING (CWE-457): [#def24]
cups-2.4.11-build/cups-2.4.11/cups/encode.c:894: error[uninitvar]: Uninitialized variables: &key.multivalue, &key.value_tag, &key.group_tag, &key.alt_group_tag, &key.operations
Error: GCC_ANALYZER_WARNING (CWE-465): [#def25]
cups-2.4.11-build/cups-2.4.11/cups/ipp.c: scope_hint: In function ‘ipp_set_value’
cups-2.4.11-build/cups-2.4.11/cups/ipp.c:6724:6: warning[-Wanalyzer-deref-before-check]: check of ‘temp’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
cups-2.4.11-build/cups-2.4.11/cups/ppd-mark.c: scope_hint: In function ‘ppd_mark_option’
cups-2.4.11-build/cups-2.4.11/cups/ppd-mark.c:930:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:528:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
cups-2.4.11-build/cups-2.4.11/cups/ppd.c: scope_hint: In function ‘_ppdOpenFile’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:2279:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
cups-2.4.11-build/cups-2.4.11/cups/ppd.c: scope_hint: In function ‘ppdSetConformance’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:2336:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:2337:1: warning[-Wanalyzer-malloc-leak]: leak of ‘_ppdGlobals()’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c: scope_hint: In function ‘ppdSetConformance’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:375:7: note: in expansion of macro ‘_cupsThreadSetData’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def31]
cups-2.4.11-build/cups-2.4.11/cups/ppd.c: scope_hint: In function ‘ppd_read’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:3196:42: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
Error: CPPCHECK_WARNING (CWE-457): [#def32]
cups-2.4.11-build/cups-2.4.11/cups/pwg-media.c:415: warning[uninitvar]: Uninitialized variable: name
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
cups-2.4.11-build/cups-2.4.11/cups/raster-stream.c: scope_hint: In function ‘cups_raster_read’
cups-2.4.11-build/cups-2.4.11/cups/raster-stream.c:1515:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r_62(D)->bufptr’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def34]
cups-2.4.11-build/cups-2.4.11/cups/raster-stream.c:1531:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*bufptr’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def35]
cups-2.4.11-build/cups-2.4.11/cups/raster-stream.c:1541:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.bufptr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
cups-2.4.11-build/cups-2.4.11/cups/cups-private.h:25: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:18: included_from: Included from here.
cups-2.4.11-build/cups-2.4.11/cups/ppd.c: scope_hint: In function ‘_ppdOpenFile’
cups-2.4.11-build/cups-2.4.11/cups/thread-private.h:42:37: warning[-Wanalyzer-malloc-leak]: leak of ‘_ppdGlobals()’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:375:7: note: in expansion of macro ‘_cupsThreadSetData’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c: scope_hint: In function ‘_ppdOpenFile’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:375:7: note: in expansion of macro ‘_cupsThreadSetData’
cups-2.4.11-build/cups-2.4.11/cups/ppd.c:375:7: note: in expansion of macro ‘_cupsThreadSetData’
Error: COMPILER_WARNING: [#def37]
cups-2.4.11-build/cups-2.4.11/filter/common.c:17:9: warning: "_GNU_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
Error: COMPILER_WARNING: [#def38]
cups-2.4.11-build/cups-2.4.11/filter/common.c:17:9: warning: ‘_GNU_SOURCE’ redefined
<command-line>: note: this is the location of the previous definition
Error: GCC_ANALYZER_WARNING: [#def39]
cups-2.4.11-build/cups-2.4.11/filter/common.c: scope_hint: In function ‘WriteLabelProlog’
cups-2.4.11-build/cups-2.4.11/filter/common.c:353:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
cups-2.4.11-build/cups-2.4.11/filter/common.c:353:23: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
cups-2.4.11-build/cups-2.4.11/filter/common.c:365:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
cups-2.4.11-build/cups-2.4.11/filter/common.c:375:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
cups-2.4.11-build/cups-2.4.11/filter/common.c:380:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
cups-2.4.11-build/cups-2.4.11/filter/common.c:386:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
cups-2.4.11-build/cups-2.4.11/filter/common.c:392:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
cups-2.4.11-build/cups-2.4.11/filter/common.c:392:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
cups-2.4.11-build/cups-2.4.11/filter/common.c:452:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING: [#def47]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c: scope_hint: In function ‘write_label_prolog’
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3224:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3224:23: note: only use operands of an integer type inside the size argument
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3236:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3246:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3251:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3257:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘wrapped_label’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def52]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3263:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3263:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
cups-2.4.11-build/cups-2.4.11/filter/pstops.c:3319:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
cups-2.4.11-build/cups-2.4.11/filter/rastertopwg.c: scope_hint: In function ‘main’
cups-2.4.11-build/cups-2.4.11/filter/rastertopwg.c:454:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘line’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
cups-2.4.11-build/cups-2.4.11/scheduler/auth.c: scope_hint: In function ‘pam_func’
cups-2.4.11-build/cups-2.4.11/scheduler/auth.c:2323:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING: [#def57]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c: scope_hint: In function ‘exec_filter’
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:904:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘infd’
Error: GCC_ANALYZER_WARNING: [#def58]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:916:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘outfd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:921:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING: [#def60]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:923:7: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:928:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING: [#def62]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:930:7: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-479): [#def63]
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c: scope_hint: In function ‘sighandler’
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:1522:3: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
cups-2.4.11-build/cups-2.4.11/scheduler/cupsfilter.c:1522:3: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
Error: CPPCHECK_WARNING (CWE-758): [#def64]
cups-2.4.11-build/cups-2.4.11/scheduler/job.c:5916: warning[objectIndex]: The address of variable 'none' might be accessed at non-zero index.
Error: CPPCHECK_WARNING (CWE-758): [#def65]
cups-2.4.11-build/cups-2.4.11/scheduler/job.c:5935: warning[objectIndex]: The address of variable 'none' might be accessed at non-zero index.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
cups-2.4.11-build/cups-2.4.11/scheduler/log.c: scope_hint: In function ‘format_log_line’
cups-2.4.11-build/cups-2.4.11/scheduler/log.c:1307:18: warning[-Wanalyzer-malloc-leak]: leak of ‘log_line’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
cups-2.4.11-build/cups-2.4.11/scheduler/main.c: scope_hint: In function ‘main’
cups-2.4.11-build/cups-2.4.11/scheduler/main.c:341:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ConfigurationFile’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: CPPCHECK_WARNING (CWE-476): [#def68]
cups-2.4.11-build/cups-2.4.11/scheduler/mime.c:180: error[ctunullpointer]: Null pointer dereference: mime
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
cups-2.4.11-build/cups-2.4.11/scheduler/util.c: scope_hint: In function ‘cupsdPipeCommand’
cups-2.4.11-build/cups-2.4.11/scheduler/util.c:302:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING: [#def70]
cups-2.4.11-build/cups-2.4.11/scheduler/util.c:304:7: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
cups-2.4.11-build/cups-2.4.11/tools/ippevepcl.c: scope_hint: In function ‘pcl_to_pcl’
cups-2.4.11-build/cups-2.4.11/tools/ippevepcl.c:271:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def72]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3004:15: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char (*)[32]’ for variadic argument 1 of ‘ap’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def73]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c: scope_hint: In function ‘html_printf’
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3004:15: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char *’ for variadic argument 1 of ‘ap’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def74]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3004:15: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘const char *’ for variadic argument 1 of ‘ap’
Error: GCC_ANALYZER_WARNING (CWE-685): [#def75]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3004:15: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
Error: GCC_ANALYZER_WARNING (CWE-686): [#def76]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3036:16: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char (*)[32]’ for variadic argument 1 of ‘ap’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def77]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3036:16: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char *’ for variadic argument 1 of ‘ap’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def78]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3036:16: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘const char *’ for variadic argument 1 of ‘ap’
Error: GCC_ANALYZER_WARNING (CWE-685): [#def79]
cups-2.4.11-build/cups-2.4.11/tools/ippeveprinter.c:3036:16: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
cups-2.4.11-build/cups-2.4.11/tools/ippeveps.c: scope_hint: In function ‘jpeg_to_ps’
cups-2.4.11-build/cups-2.4.11/tools/ippeveps.c:564:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
Error: GCC_ANALYZER_WARNING (CWE-835): [#def81]
cups-2.4.11-build/cups-2.4.11/tools/ippeveps.c:589:61: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: GCC_ANALYZER_WARNING: [#def82]
cups-2.4.11-build/cups-2.4.11/tools/ippeveps.c: scope_hint: In function ‘pdf_to_ps’
cups-2.4.11-build/cups-2.4.11/tools/ippeveps.c:833:5: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c: scope_hint: In function ‘main’
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c:345:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c: scope_hint: In function ‘browse_callback’
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c:1590:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c: scope_hint: In function ‘main’
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c:2498:28: warning[-Wanalyzer-malloc-leak]: leak of ‘new_expr(16, invert, 0, 0, argv + (long unsigned int)i * 8)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c: scope_hint: In function ‘new_expr’
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c:2504:8: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
Error: CPPCHECK_WARNING (CWE-401): [#def87]
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c:2510: error[memleak]: Memory leak: temp.args
Error: GCC_ANALYZER_WARNING (CWE-688): [#def88]
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c: scope_hint: In function ‘resolve_callback.part.0’
cups-2.4.11-build/cups-2.4.11/tools/ippfind.c:2668:27: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘strdup(hostTarget)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-169.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | cups-2.4.11-2.fc42 |
store-results-to | /tmp/tmph96oqazn/cups-2.4.11-2.fc42.tar.xz |
time-created | 2024-11-12 23:28:47 |
time-finished | 2024-11-12 23:32:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmph96oqazn/cups-2.4.11-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmph96oqazn/cups-2.4.11-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |