groff-1.23.0-11.fc44
List of Findings
Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/eqn2graph:75:25: warning[SC3028]: In POSIX sh, RANDOM is undefined.
Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/bin/eqn2graph:96:6: warning[SC2154]: exit_status is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-138): [#def3]
/usr/bin/gdiffmk:28:22: error[SC2145]: Argument mixes string and array. Use * or separate argument.
Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/bin/gdiffmk:71:2: warning[SC2034]: arg appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-456): [#def5]
/usr/bin/gdiffmk:175:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-456): [#def6]
/usr/bin/gdiffmk:176:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING: [#def7]
/usr/bin/grap2graph:77:26: warning[SC3028]: In POSIX sh, RANDOM is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/bin/grap2graph:95:5: warning[SC2034]: convert_trim_arg appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def9]
/usr/bin/grap2graph:98:6: warning[SC2154]: exit_status is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/bin/pdfroff:67:42: warning[SC2034]: NULLCMD appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/bin/pdfroff:101:67: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
Error: SHELLCHECK_WARNING (CWE-569): [#def12]
/usr/bin/pdfroff:107:9: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
Error: SHELLCHECK_WARNING (CWE-456): [#def13]
/usr/bin/pdfroff:133:40: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-569): [#def14]
/usr/bin/pdfroff:150:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-569): [#def15]
/usr/bin/pdfroff:159:17: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-569): [#def16]
/usr/bin/pdfroff:159:36: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-398): [#def17]
/usr/bin/pdfroff:168:23: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
Error: SHELLCHECK_WARNING (CWE-482): [#def18]
/usr/bin/pdfroff:207:34: error[SC1097]: Unexpected ==. For assignment, use =. For comparison, use [/[[. Or quote for literal string.
Error: SHELLCHECK_WARNING (CWE-456): [#def19]
/usr/bin/pdfroff:207:41: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-456): [#def20]
/usr/bin/pdfroff:302:16: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-456): [#def21]
/usr/bin/pdfroff:374:16: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-138): [#def22]
/usr/bin/pdfroff:374:33: error[SC2145]: Argument mixes string and array. Use * or separate argument.
Error: SHELLCHECK_WARNING (CWE-456): [#def23]
/usr/bin/pdfroff:390:16: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-456): [#def24]
/usr/bin/pdfroff:393:23: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING: [#def25]
/usr/bin/pdfroff:425:45: warning[SC3037]: In POSIX sh, echo flags are undefined.
Error: SHELLCHECK_WARNING (CWE-569): [#def26]
/usr/bin/pdfroff:445:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-456): [#def27]
/usr/bin/pdfroff:447:46: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-569): [#def28]
/usr/bin/pdfroff:465:69: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
Error: SHELLCHECK_WARNING (CWE-569): [#def29]
/usr/bin/pdfroff:469:11: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
Error: SHELLCHECK_WARNING (CWE-156): [#def30]
/usr/bin/pdfroff:593:8: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-456): [#def31]
/usr/bin/pdfroff:613:44: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-398): [#def32]
/usr/bin/pdfroff:651:35: warning[SC1078]: Did you forget to close this double quoted string?
Error: SHELLCHECK_WARNING: [#def33]
/usr/bin/pic2graph:90:25: warning[SC3028]: In POSIX sh, RANDOM is undefined.
Error: SHELLCHECK_WARNING (CWE-457): [#def34]
/usr/bin/pic2graph:111:6: warning[SC2154]: exit_status is referenced but not assigned.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
groff-1.23.0/lib/asnprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
groff-1.23.0/lib/asnprintf.c:30:3: acquire_resource: ‘va_start’ called here
groff-1.23.0/lib/asnprintf.c:31:12: throw: if ‘vasnprintf’ throws an exception...
groff-1.23.0/lib/asnprintf.c:31:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def36]
groff-1.23.0/lib/fprintf.c:45:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
groff-1.23.0/lib/fprintf.c:44:3: acquire_resource: ‘va_start’ called here
groff-1.23.0/lib/fprintf.c:45:12: throw: if ‘vasnprintf’ throws an exception...
groff-1.23.0/lib/fprintf.c:45:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-124): [#def37]
groff-1.23.0/lib/vasnprintf.c:1981:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
groff-1.23.0/lib/vasnprintf.c:1857:1: enter_function: entry to ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1863:6: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1874:7: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1874:6: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1892:7: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1892:7: call_function: inlined call to ‘xsum4’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1894:8: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1894:8: branch_true: following ‘true’ branch (when ‘sum <= 3999’)...
groff-1.23.0/lib/vasnprintf.c:1896:27: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1948:12: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1950:24: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1951:39: call_function: inlined call to ‘xsum’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: following ‘false’ branch (when ‘allocated != 18446744073709551615’)...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: following ‘true’ branch (when ‘result == resultbuf’)...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1969:12: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1973:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1973:12: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1977:19: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1977:16: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1979:32: call_function: inlined call to ‘xsum’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_false: following ‘false’ branch (when ‘allocated != 18446744073709551615’)...
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_true: following ‘true’ branch (when ‘result == resultbuf’)...
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_false: following ‘false’ branch (when ‘memory’ is non-NULL)...
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1980:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1981:13: danger: out-of-bounds write at byte -1 but region starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-124): [#def38]
groff-1.23.0/lib/vasnprintf.c:5071:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
groff-1.23.0/lib/vasnprintf.c:1857:1: enter_function: entry to ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1863:6: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1874:7: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1874:6: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1892:7: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1892:7: call_function: inlined call to ‘xsum4’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1894:8: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1894:8: branch_true: following ‘true’ branch (when ‘sum <= 3999’)...
groff-1.23.0/lib/vasnprintf.c:1896:27: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1948:12: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1950:24: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1951:39: call_function: inlined call to ‘xsum’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: following ‘false’ branch (when ‘allocated != 18446744073709551615’)...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: following ‘true’ branch (when ‘result == resultbuf’)...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1969:12: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1973:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1973:12: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1986:19: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1986:16: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1989:16: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1989:16: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4721:33: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4898:20: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4900:21: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4900:20: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4902:21: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4902:20: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4904:21: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4904:20: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4907:21: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4907:20: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4912:25: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4912:24: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4914:25: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4914:24: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4935:25: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:4935:24: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:4955:17: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:5066:17: call_function: inlined call to ‘xsum’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:5066:17: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:5071:18: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:5071:17: danger: out-of-bounds write at byte -1 but region starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-124): [#def39]
groff-1.23.0/lib/vasnprintf.c:5668:5: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
groff-1.23.0/lib/vasnprintf.c:1857:1: enter_function: entry to ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1863:6: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1874:7: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1874:6: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1892:7: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1892:7: call_function: inlined call to ‘xsum4’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1894:8: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1894:8: branch_true: following ‘true’ branch (when ‘sum <= 3999’)...
groff-1.23.0/lib/vasnprintf.c:1896:27: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1948:12: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1950:24: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1951:39: call_function: inlined call to ‘xsum’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: following ‘false’ branch (when ‘allocated != 18446744073709551615’)...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: following ‘true’ branch (when ‘result == resultbuf’)...
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_true: ...to here
groff-1.23.0/lib/vasnprintf.c:1953:13: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:1969:12: branch_true: following ‘true’ branch...
groff-1.23.0/lib/vasnprintf.c:5667:5: call_function: inlined call to ‘xsum’ from ‘vasnprintf’
groff-1.23.0/lib/vasnprintf.c:5667:5: branch_false: following ‘false’ branch...
groff-1.23.0/lib/vasnprintf.c:5668:11: branch_false: ...to here
groff-1.23.0/lib/vasnprintf.c:5668:5: danger: out-of-bounds write at byte -1 but region starts at byte 0
Error: CPPCHECK_WARNING (CWE-457): [#def40]
groff-1.23.0/src/devices/grolbp/lbp.h:162: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-476): [#def41]
groff-1.23.0/src/devices/grotty/tty.cpp:27: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
groff-1.23.0/src/devices/xditview/device.c:471:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘find_file(XtMalloc((unsigned int)strlen(device_name) + (unsigned int)strlen(file_name) + 5), result)’
groff-1.23.0/src/devices/xditview/device.c:525:7: enter_function: entry to ‘open_device_file’
groff-1.23.0/src/devices/xditview/device.c:533:8: call_function: calling ‘find_file’ from ‘open_device_file’
groff-1.23.0/src/devices/xditview/device.c:533:8: return_function: returning to ‘open_device_file’ from ‘find_file’
groff-1.23.0/src/devices/xditview/device.c:534:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/devices/xditview/device.c:538:3: branch_false: ...to here
groff-1.23.0/src/devices/xditview/device.c:538:3: throw: if ‘XtFree’ throws an exception...
groff-1.23.0/src/devices/xditview/device.c:471:3: danger: ‘find_file(XtMalloc((unsigned int)strlen(device_name) + (unsigned int)strlen(file_name) + 5), result)’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
groff-1.23.0/src/devices/xditview/device.c:471:3: warning[-Wanalyzer-malloc-leak]: leak of ‘find_file(XtMalloc((unsigned int)strlen(device_name) + (unsigned int)strlen(file_name) + 5), result)’
groff-1.23.0/src/devices/xditview/device.c:525:7: enter_function: entry to ‘open_device_file’
groff-1.23.0/src/devices/xditview/device.c:533:8: call_function: calling ‘find_file’ from ‘open_device_file’
groff-1.23.0/src/devices/xditview/device.c:533:8: return_function: returning to ‘open_device_file’ from ‘find_file’
groff-1.23.0/src/devices/xditview/device.c:534:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/devices/xditview/device.c:538:3: branch_false: ...to here
groff-1.23.0/src/devices/xditview/device.c:538:3: throw: if ‘XtFree’ throws an exception...
groff-1.23.0/src/devices/xditview/device.c:471:3: danger: ‘find_file(XtMalloc((unsigned int)strlen(device_name) + (unsigned int)strlen(file_name) + 5), result)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
groff-1.23.0/src/devices/xditview/device.c:511:5: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
groff-1.23.0/src/devices/xditview/device.c:473:3: release_memory: ‘*result’ is NULL
groff-1.23.0/src/devices/xditview/device.c:475:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
groff-1.23.0/src/devices/xditview/device.c:477:7: branch_false: ...to here
groff-1.23.0/src/devices/xditview/device.c:477:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/devices/xditview/device.c:480:6: branch_false: ...to here
groff-1.23.0/src/devices/xditview/device.c:480:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/devices/xditview/device.c:487:10: branch_false: ...to here
groff-1.23.0/src/devices/xditview/device.c:489:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/devices/xditview/device.c:494:11: branch_true: ...to here
groff-1.23.0/src/devices/xditview/device.c:495:8: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
groff-1.23.0/src/devices/xditview/device.c:496:7: branch_true: ...to here
groff-1.23.0/src/devices/xditview/device.c:504:8: branch_false: following ‘false’ branch (when ‘bufsiz >= len’)...
groff-1.23.0/src/devices/xditview/device.c:511:5: branch_false: ...to here
groff-1.23.0/src/devices/xditview/device.c:511:5: danger: argument 1 (‘buf’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-465): [#def45]
groff-1.23.0/src/devices/xditview/lex.c:33:16: warning[-Wanalyzer-deref-before-check]: check of ‘*dw.dvi.tmpFile’ for NULL after already dereferencing it
groff-1.23.0/src/devices/xditview/lex.c:33:16: branch_true: following ‘true’ branch...
groff-1.23.0/src/devices/xditview/lex.c:33:16: branch_true: ...to here
groff-1.23.0/src/devices/xditview/lex.c:33:16: branch_true: following ‘true’ branch...
groff-1.23.0/src/devices/xditview/lex.c:33:16: branch_true: ...to here
groff-1.23.0/src/devices/xditview/lex.c:33:16: danger: pointer ‘*dw.dvi.tmpFile’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def46]
groff-1.23.0/src/devices/xditview/lex.c:52:16: warning[-Wanalyzer-deref-before-check]: check of ‘*dw.dvi.tmpFile’ for NULL after already dereferencing it
groff-1.23.0/src/devices/xditview/lex.c:52:16: branch_true: following ‘true’ branch...
groff-1.23.0/src/devices/xditview/lex.c:52:16: branch_true: ...to here
groff-1.23.0/src/devices/xditview/lex.c:52:16: danger: pointer ‘*dw.dvi.tmpFile’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def47]
groff-1.23.0/src/devices/xditview/lex.c:73:16: warning[-Wanalyzer-deref-before-check]: check of ‘*dw.dvi.tmpFile’ for NULL after already dereferencing it
groff-1.23.0/src/devices/xditview/lex.c:73:16: branch_true: following ‘true’ branch...
groff-1.23.0/src/devices/xditview/lex.c:73:16: branch_true: ...to here
groff-1.23.0/src/devices/xditview/lex.c:73:16: danger: pointer ‘*dw.dvi.tmpFile’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
groff-1.23.0/src/devices/xditview/xditview.c:355:5: warning[-Wanalyzer-malloc-leak]: leak of ‘new_file’
groff-1.23.0/src/devices/xditview/xditview.c:341:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
groff-1.23.0/src/devices/xditview/xditview.c:343:14: branch_false: ...to here
groff-1.23.0/src/devices/xditview/xditview.c:343:13: branch_true: following ‘true’ branch...
groff-1.23.0/src/devices/xditview/xditview.c:344:20: branch_true: ...to here
groff-1.23.0/src/devices/xditview/xditview.c:344:20: acquire_memory: allocated here
groff-1.23.0/src/devices/xditview/xditview.c:349:8: branch_false: following ‘false’ branch (when ‘new_file’ is non-NULL)...
groff-1.23.0/src/devices/xditview/xditview.c:353:5: branch_false: ...to here
groff-1.23.0/src/devices/xditview/xditview.c:355:5: throw: if ‘XtSetValues’ throws an exception...
groff-1.23.0/src/devices/xditview/xditview.c:355:5: danger: ‘new_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-704): [#def49]
groff-1.23.0/src/devices/xditview/xditview.c: scope_hint: In function ‘NewFile’
groff-1.23.0/src/devices/xditview/xditview.c:358:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def50]
groff-1.23.0/src/devices/xditview/xditview.c:358:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING: [#def51]
groff-1.23.0/src/devices/xditview/xditview.c:367:5: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘strcpy’
groff-1.23.0/src/devices/xditview/xditview.c:487:1: enter_function: entry to ‘RerasterizeAction’
groff-1.23.0/src/devices/xditview/xditview.c:499:5: call_function: calling ‘NewFile’ from ‘RerasterizeAction’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
groff-1.23.0/src/devices/xditview/xditview.c:480:5: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(name, "w")’
groff-1.23.0/src/devices/xditview/xditview.c:476:18: acquire_memory: allocated here
groff-1.23.0/src/devices/xditview/xditview.c:477:8: branch_false: following ‘false’ branch...
groff-1.23.0/src/devices/xditview/xditview.c:480:5: branch_false: ...to here
groff-1.23.0/src/devices/xditview/xditview.c:480:5: throw: if ‘DviSaveToFile’ throws an exception...
groff-1.23.0/src/devices/xditview/xditview.c:480:5: danger: ‘popen(name, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def53]
groff-1.23.0/src/libs/libdriver/printer.cpp:120:23: warning[-Wstringop-overflow=]: ‘__builtin_memset’ writing between 16 and 25769803768 bytes into a region of size 0 overflows the destination
groff-1.23.0/src/libs/libdriver/printer.cpp:115:37: note: at offset [-8589934592, -8] into destination object of size [8, 17179869176] allocated by ‘operator new []’
Error: COMPILER_WARNING: [#def54]
groff-1.23.0/src/libs/libdriver/printer.cpp: scope_hint: In member function ‘printer::load_font(int, char const*)’
groff-1.23.0/src/libs/libdriver/printer.cpp:120:23: warning[-Wstringop-overflow=]: ‘memset’ writing between 16 and 25769803768 bytes into a region of size 0 overflows the destination
groff-1.23.0/src/libs/libdriver/printer.cpp:115:37: note: at offset [-8589934592, -8] into destination object of size [8, 17179869176] allocated by ‘operator new[](unsigned long)’
Error: COMPILER_WARNING (CWE-704): [#def55]
groff-1.23.0/src/libs/libgroff/getopt.c: scope_hint: In function ‘_getopt_internal_r’
groff-1.23.0/src/libs/libgroff/getopt.c:777:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def56]
groff-1.23.0/src/libs/libgroff/getopt.c:777:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
groff-1.23.0/src/libs/libgroff/getopt.c:907:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
groff-1.23.0/src/libs/libgroff/getopt.c:1166:1: enter_function: entry to ‘groff_getopt’
groff-1.23.0/src/libs/libgroff/getopt.c:1168:10: call_function: calling ‘_getopt_internal’ from ‘groff_getopt’
Error: CPPCHECK_WARNING (CWE-476): [#def58]
groff-1.23.0/src/libs/libgroff/glyphuni.cpp:31: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
groff-1.23.0/src/libs/libgroff/localcharset.c:171:16: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
groff-1.23.0/src/libs/libgroff/localcharset.c:129:6: branch_true: following ‘true’ branch (when ‘cp’ is NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:138:13: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:147:30: acquire_memory: allocated here
groff-1.23.0/src/libs/libgroff/localcharset.c:148:12: branch_true: following ‘true’ branch (when ‘file_name’ is non-NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:150:13: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:171:16: throw: if ‘open’ throws an exception...
groff-1.23.0/src/libs/libgroff/localcharset.c:171:16: danger: ‘file_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
groff-1.23.0/src/libs/libgroff/localcharset.c:184:19: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
groff-1.23.0/src/libs/libgroff/localcharset.c:129:6: branch_true: following ‘true’ branch (when ‘cp’ is NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:138:13: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:147:30: acquire_memory: allocated here
groff-1.23.0/src/libs/libgroff/localcharset.c:148:12: branch_true: following ‘true’ branch (when ‘file_name’ is non-NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:150:13: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:173:14: branch_false: following ‘false’ branch...
groff-1.23.0/src/libs/libgroff/localcharset.c:180:20: branch_false: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:181:18: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:184:19: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:184:19: throw: if ‘close’ throws an exception...
groff-1.23.0/src/libs/libgroff/localcharset.c:184:19: danger: ‘file_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
groff-1.23.0/src/libs/libgroff/localcharset.c:216:23: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
groff-1.23.0/src/libs/libgroff/localcharset.c:124:1: enter_function: entry to ‘get_charset_aliases’
groff-1.23.0/src/libs/libgroff/localcharset.c:129:6: branch_true: following ‘true’ branch (when ‘cp’ is NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:138:13: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:147:30: acquire_memory: allocated here
groff-1.23.0/src/libs/libgroff/localcharset.c:148:12: branch_true: following ‘true’ branch (when ‘file_name’ is non-NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:150:13: branch_true: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:173:14: branch_false: following ‘false’ branch...
groff-1.23.0/src/libs/libgroff/localcharset.c:180:20: branch_false: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:181:18: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
groff-1.23.0/src/libs/libgroff/localcharset.c:181:18: branch_false: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:201:27: call_function: inlined call to ‘getc_unlocked’ from ‘get_charset_aliases’
groff-1.23.0/src/libs/libgroff/localcharset.c:202:26: branch_false: following ‘false’ branch...
groff-1.23.0/src/libs/libgroff/localcharset.c:204:27: branch_false: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:206:26: branch_false: following ‘false’ branch...
groff-1.23.0/src/libs/libgroff/localcharset.c:216:23: branch_false: ...to here
groff-1.23.0/src/libs/libgroff/localcharset.c:216:23: throw: if ‘ungetc’ throws an exception...
groff-1.23.0/src/libs/libgroff/localcharset.c:216:23: danger: ‘file_name’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def62]
groff-1.23.0/src/libs/libgroff/nametoindex.cpp:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-476): [#def63]
groff-1.23.0/src/libs/libgroff/relocate.cpp:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: relocated_path
Error: CPPCHECK_WARNING (CWE-476): [#def64]
groff-1.23.0/src/libs/libgroff/relocate.cpp:218: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: relocated_path
Error: CPPCHECK_WARNING (CWE-476): [#def65]
groff-1.23.0/src/libs/libgroff/uniglyph.cpp:31: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-476): [#def66]
groff-1.23.0/src/libs/libgroff/uniuni.cpp:35: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-476): [#def67]
groff-1.23.0/src/preproc/eqn/lex.cpp:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: COMPILER_WARNING (CWE-457): [#def68]
groff-1.23.0/src/preproc/eqn/lex.cpp: scope_hint: In function ‘get_delimited_text()’
groff-1.23.0/src/preproc/eqn/lex.cpp:709:30: warning[-Wmaybe-uninitialized]: ‘filename’ may be used uninitialized
groff-1.23.0/src/preproc/eqn/lex.cpp:705:9: note: ‘filename’ declared here
Error: CPPCHECK_WARNING (CWE-476): [#def69]
groff-1.23.0/src/preproc/eqn/text.cpp:483: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: COMPILER_WARNING (CWE-457): [#def70]
groff-1.23.0/src/preproc/grn/hgraph.cpp: scope_hint: In function ‘PeriodicSpline(double*, int*, double*, double*, double*, int)’
groff-1.23.0/src/preproc/grn/hgraph.cpp:835:33: warning[-Wmaybe-uninitialized]: ‘deltaz’ may be used uninitialized
groff-1.23.0/src/preproc/grn/hgraph.cpp:826:10: note: ‘deltaz’ declared here
Error: CPPCHECK_WARNING (CWE-476): [#def71]
groff-1.23.0/src/preproc/html/pre-html.cpp:1209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_argv
Error: CPPCHECK_WARNING (CWE-476): [#def72]
groff-1.23.0/src/preproc/html/pre-html.cpp:1211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_argv
Error: CPPCHECK_WARNING (CWE-476): [#def73]
groff-1.23.0/src/preproc/html/pre-html.cpp:1215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_argv
Error: CPPCHECK_WARNING (CWE-476): [#def74]
groff-1.23.0/src/preproc/html/pre-html.cpp:1233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_argv
Error: CPPCHECK_WARNING (CWE-476): [#def75]
groff-1.23.0/src/preproc/html/pre-html.cpp:1236: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_argv
Error: CPPCHECK_WARNING (CWE-476): [#def76]
groff-1.23.0/src/preproc/html/pre-html.cpp:1238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_argv
Error: CPPCHECK_WARNING (CWE-457): [#def77]
groff-1.23.0/src/preproc/html/pre-html.cpp:1421: warning[uninitvar]: Uninitialized variable: wstatus
Error: COMPILER_WARNING: [#def78]
groff-1.23.0/src/preproc/html/pushback.cpp: scope_hint: In member function ‘int pushBackBuffer::readInt()’
groff-1.23.0/src/preproc/html/pushback.cpp:242:8: warning[-Wunused-but-set-variable=]: variable ‘c’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def79]
groff-1.23.0/src/preproc/html/pushback.cpp:327: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
Error: CPPCHECK_WARNING (CWE-476): [#def80]
groff-1.23.0/src/preproc/pic/lex.cpp:26: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-416): [#def81]
groff-1.23.0/src/preproc/pic/main.cpp:320: error[deallocuse]: Dereferencing 'out' after it is deallocated / released
Error: CPPCHECK_WARNING (CWE-476): [#def82]
groff-1.23.0/src/preproc/pic/main.cpp:324: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: COMPILER_WARNING (CWE-595): [#def83]
groff-1.23.0/src/preproc/refer/ref.cpp: scope_hint: In function ‘int same_reference(const reference&, const reference&)’
groff-1.23.0/src/preproc/refer/ref.cpp:539:24: warning[-Warray-compare]: comparison between two arrays is deprecated in C++20
groff-1.23.0/src/preproc/refer/ref.cpp:539:24: note: use unary ‘+’ which decays operands to pointers or ‘&(r1.reference::field_index)[0] != &(r2.reference::field_index)[0]’ to compare the addresses
Error: CPPCHECK_WARNING (CWE-476): [#def84]
groff-1.23.0/src/roff/groff/groff.cpp:648: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: name
Error: CPPCHECK_WARNING (CWE-476): [#def85]
groff-1.23.0/src/roff/groff/groff.cpp:649: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: name
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
groff-1.23.0/src/roff/groff/pipeline.c:468:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:468:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
groff-1.23.0/src/roff/groff/pipeline.c:468:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:468:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
groff-1.23.0/src/roff/groff/pipeline.c:468:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: release_resource: closed here
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:468:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
groff-1.23.0/src/roff/groff/pipeline.c:470:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(last_input)’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:470:13: acquire_resource: opened here
groff-1.23.0/src/roff/groff/pipeline.c:470:12: danger: ‘dup(last_input)’ leaks here; was opened at [(22)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
groff-1.23.0/src/roff/groff/pipeline.c:472:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:472:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:472:13: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
groff-1.23.0/src/roff/groff/pipeline.c:472:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:472:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:472:13: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
groff-1.23.0/src/roff/groff/pipeline.c:472:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: release_resource: closed here
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:468:13: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:472:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:472:13: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def93]
groff-1.23.0/src/roff/groff/pipeline.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:9: branch_true: following ‘true’ branch (when ‘no_pipe == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:459:11: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:460:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
groff-1.23.0/src/roff/groff/pipeline.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
groff-1.23.0/src/roff/groff/pipeline.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
groff-1.23.0/src/roff/groff/pipeline.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[i]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:476:13: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
groff-1.23.0/src/roff/groff/pipeline.c:478:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(pdes[1])’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:478:13: acquire_resource: opened here
groff-1.23.0/src/roff/groff/pipeline.c:478:12: danger: ‘dup(pdes[1])’ leaks here; was opened at [(14)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def98]
groff-1.23.0/src/roff/groff/pipeline.c:478:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:460:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:478:13: danger: use of uninitialized value ‘pdes[1]’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
groff-1.23.0/src/roff/groff/pipeline.c:480:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:480:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:480:13: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
groff-1.23.0/src/roff/groff/pipeline.c:480:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:480:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:480:13: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
groff-1.23.0/src/roff/groff/pipeline.c:480:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[i]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:480:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:480:13: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
groff-1.23.0/src/roff/groff/pipeline.c:482:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:482:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:482:13: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
groff-1.23.0/src/roff/groff/pipeline.c:482:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[i]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_true: following ‘true’ branch (when ‘pid == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:482:13: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:482:13: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
groff-1.23.0/src/roff/groff/pipeline.c:486:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:467:10: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:475:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:485:38: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:486:7: throw: if ‘c_error’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:486:7: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
groff-1.23.0/src/roff/groff/pipeline.c:494:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:494:11: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:494:11: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
groff-1.23.0/src/roff/groff/pipeline.c:494:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:494:11: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:494:11: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:494:11: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
groff-1.23.0/src/roff/groff/pipeline.c:494:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: release_resource: closed here
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_true: following ‘true’ branch (when ‘last_input != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:494:11: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:494:11: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:494:11: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
groff-1.23.0/src/roff/groff/pipeline.c:498:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
groff-1.23.0/src/roff/groff/pipeline.c:498:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
groff-1.23.0/src/roff/groff/pipeline.c:498:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[i]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: throw: if ‘close’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def111]
groff-1.23.0/src/roff/groff/pipeline.c:498:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:460:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:11: danger: use of uninitialized value ‘pdes[1]’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def112]
groff-1.23.0/src/roff/groff/pipeline.c:506:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:504:10: branch_true: following ‘true’ branch (when ‘proc_count > 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:506:17: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:506:17: throw: if ‘wait’ throws an exception...
groff-1.23.0/src/roff/groff/pipeline.c:506:17: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
groff-1.23.0/src/roff/groff/pipeline.c:565:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘last_input’
groff-1.23.0/src/roff/groff/pipeline.c:446:5: enter_function: entry to ‘run_pipeline’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:504:10: branch_true: following ‘true’ branch (when ‘proc_count > 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:506:17: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:508:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:509:7: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:509:7: call_function: calling ‘sys_fatal’ from ‘run_pipeline’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
groff-1.23.0/src/roff/groff/pipeline.c:565:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
groff-1.23.0/src/roff/groff/pipeline.c:446:5: enter_function: entry to ‘run_pipeline’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:465:8: branch_false: following ‘false’ branch (when ‘pid != 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:493:8: branch_false: following ‘false’ branch (when ‘last_input == 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:497:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:498:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:499:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_true: following ‘true’ branch (when ‘pid < 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:464:7: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:464:7: call_function: calling ‘sys_fatal’ from ‘run_pipeline’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
groff-1.23.0/src/roff/groff/pipeline.c:565:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
groff-1.23.0/src/roff/groff/pipeline.c:446:5: enter_function: entry to ‘run_pipeline’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_true: following ‘true’ branch (when ‘pid < 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:464:7: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:464:7: call_function: calling ‘sys_fatal’ from ‘run_pipeline’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
groff-1.23.0/src/roff/groff/pipeline.c:565:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[i]’
groff-1.23.0/src/roff/groff/pipeline.c:446:5: enter_function: entry to ‘run_pipeline’
groff-1.23.0/src/roff/groff/pipeline.c:454:15: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:458:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:458:8: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:459:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:462:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:463:8: branch_true: following ‘true’ branch (when ‘pid < 0’)...
groff-1.23.0/src/roff/groff/pipeline.c:464:7: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:464:7: call_function: calling ‘sys_fatal’ from ‘run_pipeline’
Error: CPPCHECK_WARNING (CWE-401): [#def117]
groff-1.23.0/src/roff/troff/env.cpp:1260: error[memleak]: Memory leak: sizes
Error: COMPILER_WARNING: [#def118]
groff-1.23.0/src/roff/troff/node.cpp: scope_hint: In function ‘tfont* make_tfont(tfont_spec&)’
groff-1.23.0/src/roff/troff/node.cpp:277:15: warning: C++20 says that these are ambiguous, even though the second is reversed:
groff-1.23.0/src/roff/troff/node.cpp:194:7: note: candidate 1: ‘int tfont_spec::operator==(const tfont_spec&)’
groff-1.23.0/src/roff/troff/node.cpp:194:7: note: candidate 2: ‘int tfont_spec::operator==(const tfont_spec&)’ (reversed)
groff-1.23.0/src/roff/troff/node.cpp:194:7: note: try making the operator a ‘const’ member function
Error: COMPILER_WARNING: [#def119]
groff-1.23.0/src/roff/troff/node.cpp: scope_hint: In constructor ‘tfont::tfont(tfont_spec&)’
groff-1.23.0/src/roff/troff/node.cpp:713:15: warning: C++20 says that these are ambiguous, even though the second is reversed:
groff-1.23.0/src/roff/troff/node.cpp:493:5: note: candidate 1: ‘int tfont_spec::operator==(const tfont_spec&)’
groff-1.23.0/src/roff/troff/node.cpp:493:5: note: candidate 2: ‘int tfont_spec::operator==(const tfont_spec&)’ (reversed)
groff-1.23.0/src/roff/troff/node.cpp:493:5: note: try making the operator a ‘const’ member function
Error: CPPCHECK_WARNING (CWE-476): [#def120]
groff-1.23.0/src/roff/troff/node.cpp:4128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_name
Error: CPPCHECK_WARNING (CWE-682): [#def121]
groff-1.23.0/src/roff/troff/node.cpp:4131: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def122]
groff-1.23.0/src/roff/troff/node.cpp:4135: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def123]
groff-1.23.0/src/roff/troff/node.cpp:4138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_name
Error: CPPCHECK_WARNING (CWE-476): [#def124]
groff-1.23.0/src/utils/hpftodit/hpuni.cpp:31: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: CPPCHECK_WARNING (CWE-476): [#def125]
groff-1.23.0/src/utils/indxbib/indxbib.cpp:261: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def126]
groff-1.23.0/src/utils/indxbib/indxbib.cpp:398: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-404): [#def127]
groff-1.23.0/src/utils/tfmtodit/tfmtodit.cpp:425: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-457): [#def128]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:109: error[legacyUninitvar]: Uninitialized variable: name1
Error: CPPCHECK_WARNING (CWE-457): [#def129]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:109: error[legacyUninitvar]: Uninitialized variable: name2
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:215:10: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:280:5: enter_function: entry to ‘main’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:348:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:40: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:18: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:354:25: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:11: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:357:5: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def131]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:222:5: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘file_name’ which points to memory on the stack
groff-1.23.0/src/utils/xtotroff/xtotroff.c:280:5: enter_function: entry to ‘main’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:348:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:40: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:18: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:354:25: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:11: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:357:5: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:264:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:280:5: enter_function: entry to ‘main’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:348:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:40: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:18: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:354:25: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:11: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:357:5: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def133]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:266:3: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘file_name’ which points to memory on the stack
groff-1.23.0/src/utils/xtotroff/xtotroff.c:280:5: enter_function: entry to ‘main’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:348:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:40: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:18: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:354:25: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:11: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:357:5: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "r")’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:9: acquire_resource: opened here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: danger: ‘fopen(*<unknown>, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "r")’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:9: acquire_memory: allocated here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: danger: ‘fopen(*<unknown>, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:36: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "r")’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:280:5: enter_function: entry to ‘main’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:9: acquire_resource: opened here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:348:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:40: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:18: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:354:25: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:11: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:357:5: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:36: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "r")’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:280:5: enter_function: entry to ‘main’
groff-1.23.0/src/utils/xtotroff/xtotroff.c:325:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:330:9: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:331:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:19: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:338:9: acquire_memory: allocated here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:339:6: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:348:10: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:346:40: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:18: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:352:12: branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:354:25: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:11: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:355:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/utils/xtotroff/xtotroff.c:357:5: branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-16.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | groff-1.23.0-11.fc44 |
| store-results-to | /tmp/tmp64ppse4f/groff-1.23.0-11.fc44.tar.xz |
| time-created | 2026-01-08 16:51:52 |
| time-finished | 2026-01-08 16:54:16 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp64ppse4f/groff-1.23.0-11.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp64ppse4f/groff-1.23.0-11.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |