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: 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: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def37]
groff-1.23.0/src/devices/grolbp/lbp.h:162: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-476): [#def38]
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): [#def39]
groff-1.23.0/src/devices/xditview/xditview.c:355:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘new_file’
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): [#def40]
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: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: [#def41]
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): [#def42]
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: danger: ‘popen(name, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def43]
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: [#def44]
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: GCC_ANALYZER_WARNING (CWE-476): [#def45]
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): [#def46]
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): [#def47]
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: 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): [#def48]
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: 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): [#def49]
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)...
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:216:23: danger: ‘file_name’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
groff-1.23.0/src/libs/libgroff/localcharset.c:216:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
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: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:180:20: acquire_memory: allocated here
groff-1.23.0/src/libs/libgroff/localcharset.c:181:18: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
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:216:23: danger: ‘fp’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def51]
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): [#def52]
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): [#def53]
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): [#def54]
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): [#def55]
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): [#def56]
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: CPPCHECK_WARNING (CWE-476): [#def57]
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): [#def58]
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): [#def59]
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): [#def60]
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): [#def61]
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): [#def62]
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): [#def63]
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): [#def64]
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): [#def65]
groff-1.23.0/src/preproc/html/pre-html.cpp:1421: warning[uninitvar]: Uninitialized variable: wstatus
Error: CPPCHECK_WARNING (CWE-476): [#def66]
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): [#def67]
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): [#def68]
groff-1.23.0/src/preproc/pic/main.cpp:320: error[deallocuse]: Dereferencing 'out' after it is deallocated / released
Error: CPPCHECK_WARNING (CWE-476): [#def69]
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: [#def70]
groff-1.23.0/src/preproc/refer/ref.cpp: scope_hint: In member function ‘__ct_base ’
groff-1.23.0/src/preproc/refer/ref.cpp:140:29: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
groff-1.23.0/src/preproc/refer/ref.cpp:140:29: note: in a call to built-in allocation function ‘operator new []’
Error: COMPILER_WARNING: [#def71]
groff-1.23.0/src/preproc/refer/ref.cpp:179:31: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
groff-1.23.0/src/preproc/refer/ref.cpp:179:31: note: in a call to built-in allocation function ‘operator new []’
Error: COMPILER_WARNING: [#def72]
groff-1.23.0/src/preproc/refer/ref.cpp:200:33: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
groff-1.23.0/src/preproc/refer/ref.cpp:200:33: note: in a call to built-in allocation function ‘operator new []’
Error: COMPILER_WARNING: [#def73]
groff-1.23.0/src/preproc/refer/ref.cpp:225:33: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
groff-1.23.0/src/preproc/refer/ref.cpp:225:33: note: in a call to built-in allocation function ‘operator new []’
Error: COMPILER_WARNING (CWE-595): [#def74]
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
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: COMPILER_WARNING: [#def75]
groff-1.23.0/src/preproc/tbl/main.cpp:688:49: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
groff-1.23.0/src/preproc/tbl/main.cpp:688:49: note: in a call to built-in allocation function ‘operator new []’
Error: COMPILER_WARNING: [#def76]
groff-1.23.0/src/preproc/tbl/table.cpp:1257:38: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
groff-1.23.0/src/preproc/tbl/table.cpp:1257:38: note: in a call to built-in allocation function ‘operator new []’
Error: CPPCHECK_WARNING (CWE-476): [#def77]
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): [#def78]
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): [#def79]
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: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: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_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_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: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
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: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_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_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_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_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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
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: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: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_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_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_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: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
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: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: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_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_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 [(20)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
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: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: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_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_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: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
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: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_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_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_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_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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
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: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: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_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_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_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: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
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: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: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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
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: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
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: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
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/12/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def90]
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): [#def91]
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: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: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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
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: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def93]
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: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
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: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: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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
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: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
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: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: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: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: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
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: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_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_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: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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
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: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: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_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: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: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
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: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: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: danger: ‘pdes[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
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: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
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: danger: ‘pdes[i]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def102]
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): [#def103]
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: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_false: following ‘false’ branch (when ‘i >= ncommands’)...
branch_false: ...to here
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: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
groff-1.23.0/src/roff/groff/pipeline.c:537: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: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_false: following ‘false’ branch (when ‘i >= ncommands’)...
branch_false: ...to here
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:510:17: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:511:11: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:511:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:512:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:514:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:515:15: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:517:14: branch_false: following ‘false’ branch (when ‘sig != 13’)...
groff-1.23.0/src/roff/groff/pipeline.c:540:21: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:537:13: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
groff-1.23.0/src/roff/groff/pipeline.c:553: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: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_false: following ‘false’ branch (when ‘i >= ncommands’)...
branch_false: ...to here
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:510:17: branch_true: following ‘true’ branch (when ‘i < ncommands’)...
groff-1.23.0/src/roff/groff/pipeline.c:511:11: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:511:10: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:512:9: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:514:12: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:544:18: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:544:17: branch_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:553:11: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:553:11: danger: ‘last_input’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
groff-1.23.0/src/roff/groff/pipeline.c:559:1: 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: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: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_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:502:5: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:559:1: danger: ‘pdes[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
groff-1.23.0/src/roff/groff/pipeline.c:559:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[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: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: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_false: following ‘false’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:502:5: branch_false: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:559:1: danger: ‘pdes[last_input]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
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: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_false: following ‘false’ branch (when ‘i >= ncommands’)...
branch_false: ...to here
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): [#def109]
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: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: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:12: branch_true: following ‘true’ branch...
groff-1.23.0/src/roff/groff/pipeline.c:477:11: branch_true: ...to here
groff-1.23.0/src/roff/groff/pipeline.c:477:11: call_function: calling ‘sys_fatal’ from ‘run_pipeline’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
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): [#def111]
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: GCC_ANALYZER_WARNING (CWE-775): [#def112]
groff-1.23.0/src/roff/groff/pipeline.c:565:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[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: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: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): [#def113]
groff-1.23.0/src/roff/troff/env.cpp:1260: error[memleak]: Memory leak: sizes
Error: CPPCHECK_WARNING (CWE-476): [#def114]
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): [#def115]
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): [#def116]
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): [#def117]
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): [#def118]
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): [#def119]
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): [#def120]
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): [#def121]
groff-1.23.0/src/utils/tfmtodit/tfmtodit.cpp:425: error[resourceLeak]: Resource leak: fp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:86:8: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def123]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:86:8: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def124]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:95:3: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def125]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:95:3: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
branch_true: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:358:10: call_function: calling ‘MapFont’ from ‘main’
Error: CPPCHECK_WARNING (CWE-457): [#def126]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:109: error[legacyUninitvar]: Uninitialized variable: name1
Error: CPPCHECK_WARNING (CWE-457): [#def127]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:109: error[legacyUninitvar]: Uninitialized variable: name2
Error: GCC_ANALYZER_WARNING (CWE-775): [#def128]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:149:8: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def129]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:149:8: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def130]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:162:3: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def131]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:162:3: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def132]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:164:11: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def133]
groff-1.23.0/src/utils/xtotroff/xtotroff.c:164:11: 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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def134]
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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def135]
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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def136]
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...
branch_false: ...to here
groff-1.23.0/src/utils/xtotroff/xtotroff.c:345:10: branch_true: following ‘true’ branch...
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): [#def137]
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...
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/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
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...
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/14/codeFlows/0/threadFlows/0/locations/4)
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| 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-209.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-gcc-latest-x86_64 |
| project-name | groff-1.23.0-11.fc44 |
| store-results-to | /tmp/tmppjs0wbrx/groff-1.23.0-11.fc44.tar.xz |
| time-created | 2025-10-28 18:09:13 |
| time-finished | 2025-10-28 18:11:35 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmppjs0wbrx/groff-1.23.0-11.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmppjs0wbrx/groff-1.23.0-11.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |