ksh-1.0.10-5.fc43
List of Findings
Error: COMPILER_WARNING: [#def1]
ksh-1.0.10/arch/linux.i386-64/include/ast/ast_std.h:34: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:32: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/src/cmd/ksh93/6f5f38473.c:2: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/ast_standards.h:12:9: warning: 'basename' redefined
ksh-1.0.10/arch/linux.i386-64/include/ast/ast_common.h:155: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/bytesex.h:27: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/endian.h:27: included_from: Included from here.
/usr/include/sys/types.h:176: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/src/cmd/ksh93/6f5f38473.c:1: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/ast_map.h:12:9: note: this is the location of the previous definition
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
ksh-1.0.10/src/cmd/ksh93/include/defs.h:47: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/init.c: scope_hint: In function 'sh_inittree'
ksh-1.0.10/arch/linux.i386-64/include/ast/cdt.h:298:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'treep'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1967:17: note: in expansion of macro 'dtinsert'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1802:22: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1802:22: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1963:20: note: in expansion of macro 'nv_isattr'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1963:20: note: in expansion of macro 'nv_isattr'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1967:17: note: in expansion of macro 'dtinsert'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:24: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c: scope_hint: In function 'sh_outtype'
ksh-1.0.10/arch/linux.i386-64/include/ast/sfio.h:294:35: warning[-Wanalyzer-null-dereference]: dereference of NULL 'iop'
ksh-1.0.10/arch/linux.i386-64/include/ast/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1481:41: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:26: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1423:22: note: in expansion of macro 'L_ARGNOD'
ksh-1.0.10/src/cmd/ksh93/include/defs.h:47: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1428:29: note: in expansion of macro 'dtfirst'
ksh-1.0.10/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/name.h:170:26: note: in expansion of macro 'nv_isattr'
ksh-1.0.10/src/cmd/ksh93/include/name.h:171:27: note: in expansion of macro 'nv_isnonptr'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1439:20: note: in expansion of macro 'nv_isnull'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1443:28: note: in expansion of macro 'L_ARGNOD'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1465:28: note: in expansion of macro 'nv_isattr'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1472:36: note: in expansion of macro 'nv_isattr'
ksh-1.0.10/arch/linux.i386-64/include/ast/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1481:41: note: in expansion of macro 'sfputc'
ksh-1.0.10/arch/linux.i386-64/include/ast/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/cmd/ksh93/sh/nvtype.c:1481:41: note: in expansion of macro 'sfputc'
Error: CPPCHECK_WARNING: [#def4]
ksh-1.0.10/arch/linux.i386-64/src/lib/libast/FEATURE/sfinit:673: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1E309L
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
ksh-1.0.10/arch/linux.i386-64/src/lib/libast/conf.tmp.c: scope_hint: In function 'main'
ksh-1.0.10/arch/linux.i386-64/src/lib/libast/conf.tmp.c:22:75: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/proc/sys/kernel/pid_max", 0)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
ksh-1.0.10/arch/linux.i386-64/src/lib/libast/conf.tmp.c: scope_hint: In function 'main'
ksh-1.0.10/arch/linux.i386-64/src/lib/libast/conf.tmp.c:23:75: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/proc/sys/kernel/pid_max", 0)'
Error: COMPILER_WARNING (CWE-681): [#def7]
ksh-1.0.10/arch/linux.i386-64/src/lib/libast/conf.tmp.c:74:1: warning[-Woverflow]: unsigned conversion from 'long int' to 'unsigned int' changes value from '9223372036854775807' to '4294967295'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
ksh-1.0.10/src/cmd/INIT/intl.c: scope_hint: In function 'main'
ksh-1.0.10/src/cmd/INIT/intl.c:25:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ksh-1.0.10/src/cmd/INIT/intl.c:19: included_from: Included from here.
/usr/include/libintl.h:39:14: note: argument 1 of 'gettext' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'run.part.0'
ksh-1.0.10/src/cmd/INIT/mamake.c:171:85: warning[-Wanalyzer-null-dereference]: dereference of NULL '*<unknown>.nxt'
ksh-1.0.10/src/cmd/INIT/mamake.c:1383:33: note: in expansion of macro 'add'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:26: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:65: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:65: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:1383:33: note: in expansion of macro 'add'
ksh-1.0.10/src/cmd/INIT/mamake.c:1383:33: note: in expansion of macro 'add'
ksh-1.0.10/src/cmd/INIT/mamake.c:1383:33: note: in expansion of macro 'add'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'report.part.0'
ksh-1.0.10/src/cmd/INIT/mamake.c:394:46: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'report.part.0'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'report.part.0'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'report.part.0'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'report.part.0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'buffer'
ksh-1.0.10/src/cmd/INIT/mamake.c:441:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buf'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:26: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:26: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:20: warning[-Wanalyzer-malloc-leak]: leak of '*buf.buf'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
ksh-1.0.10/src/cmd/INIT/mamake.c:470:26: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
ksh-1.0.10/src/cmd/INIT/mamake.c:471:26: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:26: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:65: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:439:65: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c:468:34: note: in expansion of macro 'newof'
ksh-1.0.10/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
Error: CPPCHECK_WARNING (CWE-476): [#def15]
ksh-1.0.10/src/cmd/INIT/mamake.c:1679: error[nullPointer]: Null pointer dereference
Error: CPPCHECK_WARNING (CWE-682): [#def16]
ksh-1.0.10/src/cmd/INIT/mamake.c:1749: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def17]
ksh-1.0.10/src/cmd/INIT/mamake.c:1760: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
ksh-1.0.10/src/cmd/ksh93/bltins/cd_pwd.c: scope_hint: In function 'b_cd'
ksh-1.0.10/src/cmd/ksh93/bltins/cd_pwd.c:151:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cp'
ksh-1.0.10/arch/linux.i386-64/include/ast/error.h:31: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/cd_pwd.c:30: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/cd_pwd.c:89:17: note: in expansion of macro 'opt_info'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/cd_pwd.c:149:22: note: in expansion of macro 'sfstruse'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
ksh-1.0.10/src/cmd/ksh93/bltins/misc.c: scope_hint: In function 'b_dot_cmd'
ksh-1.0.10/src/cmd/ksh93/bltins/misc.c:336:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'saveargfor'
ksh-1.0.10/src/cmd/ksh93/include/shell.h:34: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:69: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/misc.c:40: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/stk.h:42:35: note: in definition of macro 'stkptr'
ksh-1.0.10/src/cmd/ksh93/include/shell.h:40: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/misc.c:310:9: note: in expansion of macro 'sh_pushcontext'
ksh-1.0.10/src/cmd/ksh93/include/fault.h:27: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-758): [#def20]
ksh-1.0.10/src/cmd/ksh93/bltins/print.c:1024: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def21]
ksh-1.0.10/src/cmd/ksh93/bltins/print.c:1090: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def22]
ksh-1.0.10/src/cmd/ksh93/bltins/print.c:1100: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def23]
ksh-1.0.10/src/cmd/ksh93/bltins/print.c:1103: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
ksh-1.0.10/src/cmd/ksh93/bltins/read.c: scope_hint: In function 'sh_readline'
ksh-1.0.10/src/cmd/ksh93/bltins/read.c:585:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'ifs'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
ksh-1.0.10/src/cmd/ksh93/bltins/test.c: scope_hint: In function 'test_strmatch'
ksh-1.0.10/src/cmd/ksh93/bltins/test.c:86:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cp'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/test.c:28: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/bltins/test.c:553:52: note: in expansion of macro 'sfstruse'
Error: CPPCHECK_WARNING (CWE-457): [#def26]
ksh-1.0.10/src/cmd/ksh93/edit/completion.c:51: error[legacyUninitvar]: Uninitialized variable: hc[0]
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
ksh-1.0.10/src/cmd/ksh93/edit/history.c: scope_hint: In function 'hist_word'
ksh-1.0.10/src/cmd/ksh93/edit/history.c:1015:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cp'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def28]
ksh-1.0.10/src/cmd/ksh93/edit/history.c: scope_hint: In function 'hist_locate'
ksh-1.0.10/src/cmd/ksh93/edit/history.c:1094:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'next.hist_char'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
ksh-1.0.10/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/arith.c:26: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/arith.c: scope_hint: In function 'arith'
ksh-1.0.10/src/cmd/ksh93/include/nval.h:213:38: warning[-Wanalyzer-null-dereference]: dereference of NULL 'np'
ksh-1.0.10/src/cmd/ksh93/sh/arith.c:244:20: note: in expansion of macro 'nv_isattr'
ksh-1.0.10/src/cmd/ksh93/sh/arith.c:244:20: note: in expansion of macro 'nv_isattr'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
ksh-1.0.10/src/cmd/ksh93/sh/init.c:37: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/init.c: scope_hint: In function 'nv_init'
ksh-1.0.10/src/cmd/ksh93/include/variables.h:100:28: warning[-Wanalyzer-malloc-leak]: leak of 'sh_calloc(1, 40)'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1909:38: note: in expansion of macro 'SH_VERSIONNOD'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:31: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1802:22: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1802:22: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1908:34: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1908:34: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:1909:38: note: in expansion of macro 'SH_VERSIONNOD'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
ksh-1.0.10/src/cmd/ksh93/sh/array.c: scope_hint: In function 'array_maxindex'
ksh-1.0.10/src/cmd/ksh93/sh/array.c:183:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ksh-1.0.10/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/array.c:29: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/array.c:1822:25: note: in expansion of macro 'nv_offattr'
ksh-1.0.10/src/cmd/ksh93/include/name.h:171:67: note: in expansion of macro '_nv_hasget'
ksh-1.0.10/src/cmd/ksh93/sh/array.c:1823:29: note: in expansion of macro 'nv_isnull'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
ksh-1.0.10/src/cmd/ksh93/sh/expand.c: scope_hint: In function 'path_expand'
ksh-1.0.10/src/cmd/ksh93/sh/expand.c:116:76: warning[-Wanalyzer-null-argument]: use of NULL 'trimmedpat' where non-null expected
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/expand.c:28: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/expand.c:107:30: note: in expansion of macro 'sfstruse'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast_sys.h:10: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/ast_std.h:65: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:32: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of 'strcmp' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
ksh-1.0.10/src/cmd/ksh93/sh/expand.c: scope_hint: In function 'path_generate'
ksh-1.0.10/src/cmd/ksh93/sh/expand.c:404:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'format'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
ksh-1.0.10/src/cmd/ksh93/sh/init.c: scope_hint: In function 'nv_mapchar'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:2185:16: warning[-Wanalyzer-malloc-leak]: leak of 'sh_calloc(1, n + 72)'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:2172:14: note: in expansion of macro 'sh_newof'
ksh-1.0.10/src/cmd/ksh93/sh/init.c:2172:14: note: in expansion of macro 'sh_newof'
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def35]
ksh-1.0.10/src/cmd/ksh93/sh/io.c: scope_hint: In function 'sh_close'
ksh-1.0.10/src/cmd/ksh93/sh/io.c:719:26: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
ksh-1.0.10/arch/linux.i386-64/include/ast/error.h:32: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/io.c:30: included_from: Included from here.
Error: GCC_ANALYZER_WARNING: [#def36]
ksh-1.0.10/src/cmd/ksh93/sh/io.c: scope_hint: In function 'sh_iomovefd.part.0'
ksh-1.0.10/src/cmd/ksh93/sh/io.c:910:17: warning[-Wanalyzer-fd-use-without-check]: 'dup' on possibly invalid file descriptor 'fdold'
Error: CPPCHECK_WARNING (CWE-682): [#def37]
ksh-1.0.10/src/cmd/ksh93/sh/parse.c:1959: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def38]
ksh-1.0.10/src/cmd/ksh93/sh/subshell.c: scope_hint: In function 'sh_subshell'
ksh-1.0.10/src/cmd/ksh93/sh/subshell.c:736:31: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '1'
ksh-1.0.10/src/cmd/ksh93/include/fault.h:27: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/shell.h:40: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:69: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/sh/subshell.c:28: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/error.h:32: included_from: Included from here.
ksh-1.0.10/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
ksh-1.0.10/src/lib/libast/cdt/dtview.c: scope_hint: In function 'dtvsearch.part.0'
ksh-1.0.10/src/lib/libast/cdt/dtview.c:48:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dt'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
ksh-1.0.10/src/lib/libast/comp/regcmp.c: scope_hint: In function '_ast_regcmp'
ksh-1.0.10/src/lib/libast/comp/regcmp.c:75:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
ksh-1.0.10/src/lib/libast/disc/sfdcmore.c: scope_hint: In function 'morewrite.part.0'
ksh-1.0.10/src/lib/libast/disc/sfdcmore.c:150:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 's'
Error: CPPCHECK_WARNING (CWE-401): [#def42]
ksh-1.0.10/src/lib/libast/disc/sfdcmore.c:311: error[memleak]: Memory leak: more
Error: CPPCHECK_WARNING (CWE-401): [#def43]
ksh-1.0.10/src/lib/libast/disc/sfdcmore.c:317: error[memleak]: Memory leak: more
Error: CPPCHECK_WARNING (CWE-401): [#def44]
ksh-1.0.10/src/lib/libast/disc/sfdcmore.c:322: error[memleak]: Memory leak: more
Error: CPPCHECK_WARNING (CWE-682): [#def45]
ksh-1.0.10/src/lib/libast/disc/sfkeyprintf.c:232: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def46]
ksh-1.0.10/src/lib/libast/hash/hashalloc.c: scope_hint: In function 'hashalloc'
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:146:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.10/src/lib/libast/hash/hashlib.h:29: included_from: Included from here.
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:26: included_from: Included from here.
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:81:40: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def47]
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:160:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:64:26: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def48]
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:167:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.10/src/lib/libast/hash/hashalloc.c:81:40: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def49]
ksh-1.0.10/src/lib/libast/hash/hashfree.c: scope_hint: In function 'hashfree'
ksh-1.0.10/src/lib/libast/hash/hashfree.c:86:76: warning[-Wanalyzer-use-after-free]: use after 'free' of '*b.name'
Error: CPPCHECK_WARNING (CWE-476): [#def50]
ksh-1.0.10/src/lib/libast/hash/hashlook.c:48: warning[nullPointer]: Possible null pointer dereference: (unsigned int*)value
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
ksh-1.0.10/src/lib/libast/hash/hashlook.c: scope_hint: In function 'hashlook'
ksh-1.0.10/src/lib/libast/hash/hashlook.c:90:49: warning[-Wanalyzer-null-dereference]: dereference of NULL 'value'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
ksh-1.0.10/src/lib/libast/hash/hashlook.c:218:45: warning[-Wanalyzer-null-argument]: use of NULL 'value' where non-null expected
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
ksh-1.0.10/src/lib/libast/include/ast.h:36: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/optlib.h:30: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/optget.c:30: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/optget.c: scope_hint: In function 'expand'
ksh-1.0.10/src/lib/libast/include/sfio.h:384:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ip'
ksh-1.0.10/src/lib/libast/misc/optget.c:843:13: note: in expansion of macro 'sfstrtell'
ksh-1.0.10/src/lib/libast/include/error.h:31: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/optlib.h:109: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/optget.c:5752:17: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libast/misc/optget.c:843:13: note: in expansion of macro 'sfstrtell'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
ksh-1.0.10/src/lib/libast/misc/fastfind.c: scope_hint: In function 'findopen'
ksh-1.0.10/src/lib/libast/misc/fastfind.c:640:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
ksh-1.0.10/src/lib/libast/misc/fastfind.c: scope_hint: In function 'findread'
ksh-1.0.10/src/lib/libast/misc/fastfind.c:828:36: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
ksh-1.0.10/src/lib/libast/misc/fastfind.c:856:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
ksh-1.0.10/src/lib/libast/misc/fastfind.c:74: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/fastfind.c:852:21: note: in expansion of macro 'FF_OK_TYPE'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
ksh-1.0.10/src/lib/libast/misc/fastfind.c:885:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
ksh-1.0.10/src/lib/libast/misc/fastfind.c:852:21: note: in expansion of macro 'FF_OK_TYPE'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
ksh-1.0.10/src/lib/libast/misc/fts.c: scope_hint: In function 'fts_read'
ksh-1.0.10/src/lib/libast/misc/fts.c:172:16: warning[-Wanalyzer-malloc-leak]: leak of 'node(fts, *fts.current, s, i)'
ksh-1.0.10/src/lib/libast/misc/fts.c:28: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/fts.c:180:27: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libast/misc/fts.c:107:39: note: in definition of macro 'TYPE'
ksh-1.0.10/src/lib/libast/misc/fts.c:1024:41: note: in expansion of macro 'D_TYPE'
ksh-1.0.10/src/lib/libast/dir/dirlib.h:35: included_from: Included from here.
ksh-1.0.10/src/lib/libast/include/ast_dir.h:40: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/fts.c:29: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-476): [#def59]
ksh-1.0.10/src/lib/libast/misc/fts.c:362: warning[nullPointer]: Possible null pointer dereference: root
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
ksh-1.0.10/src/lib/libast/misc/fts.c: scope_hint: In function 'getlist'
ksh-1.0.10/src/lib/libast/misc/fts.c:362:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'root'
Error: CPPCHECK_WARNING (CWE-562): [#def61]
ksh-1.0.10/src/lib/libast/misc/glob.c:668: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-476): [#def62]
ksh-1.0.10/src/lib/libast/misc/magic.c:2048: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ep->value.loop
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
ksh-1.0.10/src/lib/libast/misc/magic.c: scope_hint: In function 'magiclist'
ksh-1.0.10/src/lib/libast/misc/magic.c:2407:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ep'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
ksh-1.0.10/src/lib/libast/misc/optget.c: scope_hint: In function 'optget'
ksh-1.0.10/src/lib/libast/misc/optget.c:1189:13: warning[-Wanalyzer-malloc-leak]: leak of 'info(psp, next(s, version) + 1, 0, xp, id)'
ksh-1.0.10/src/lib/libast/misc/optget.c:5752:17: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libast/misc/optget.c:1191:19: note: in expansion of macro 'newof'
Error: COMPILER_WARNING (CWE-126): [#def65]
ksh-1.0.10/src/lib/libast/misc/optget.c: scope_hint: In function 'args'
ksh-1.0.10/src/lib/libast/misc/optget.c:1605:36: warning[-Wstringop-overread]: 'memchr' specified bound [18446744071562067968, 0] exceeds maximum object size 9223372036854775807
Error: CPPCHECK_WARNING (CWE-476): [#def66]
ksh-1.0.10/src/lib/libast/misc/optget.c:4145: error[ctunullpointer]: Null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def67]
ksh-1.0.10/src/lib/libast/misc/optget.c:4145: warning[nullPointer]: Possible null pointer dereference: e
Error: GCC_ANALYZER_WARNING (CWE-124): [#def68]
ksh-1.0.10/src/lib/libast/misc/optget.c:4786:70: warning[-Wanalyzer-out-of-bounds]: buffer underwrite
ksh-1.0.10/src/lib/libast/misc/optget.c:5752:17: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libast/include/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/lib/libast/misc/optget.c:4783:49: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/lib/libast/include/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/lib/libast/misc/optget.c:4783:49: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/lib/libast/include/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/lib/libast/misc/optget.c:4783:49: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/lib/libast/misc/optget.c:868:17: note: in expansion of macro 'sfstruse'
ksh-1.0.10/src/lib/libast/misc/optget.c:4786:70: note: valid subscripts for '"error"' are '[0]' to '[5]'
Error: GCC_ANALYZER_WARNING (CWE-471): [#def69]
ksh-1.0.10/src/lib/libast/misc/optget.c:4786:70: warning[-Wanalyzer-write-to-string-literal]: write to string literal
ksh-1.0.10/src/lib/libast/misc/optget.c:5752:17: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libast/include/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/lib/libast/misc/optget.c:4783:49: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/lib/libast/include/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/lib/libast/misc/optget.c:4783:49: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/lib/libast/include/sfio.h:345:51: note: in expansion of macro '__sf_putc'
ksh-1.0.10/src/lib/libast/misc/optget.c:4783:49: note: in expansion of macro 'sfputc'
ksh-1.0.10/src/lib/libast/misc/optget.c:868:17: note: in expansion of macro 'sfstruse'
Error: GCC_ANALYZER_WARNING: [#def70]
ksh-1.0.10/src/lib/libast/misc/procopen.c: scope_hint: In function 'procopen'
ksh-1.0.10/src/lib/libast/misc/procopen.c:560:41: warning[-Wanalyzer-fd-use-without-check]: 'write' on possibly invalid file descriptor '-1'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
ksh-1.0.10/src/lib/libast/misc/stk.c: scope_hint: In function 'stkinstall'
ksh-1.0.10/src/lib/libast/misc/stk.c:251:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
ksh-1.0.10/src/lib/libast/misc/translate.c: scope_hint: In function 'match'
ksh-1.0.10/src/lib/libast/misc/translate.c:249:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 't'
ksh-1.0.10/src/lib/libast/misc/translate.c:26: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/translate.c:292:1: note: in expansion of macro 'translate'
Error: COMPILER_WARNING (CWE-562): [#def73]
ksh-1.0.10/src/lib/libast/path/pathkey.c: scope_hint: In function 'pathkey_20100601'
ksh-1.0.10/src/lib/libast/path/pathkey.c:289:41: warning[-Wreturn-local-addr]: function may return address of local variable
ksh-1.0.10/src/lib/libast/path/pathkey.c:58:25: note: declared here
Error: COMPILER_WARNING (CWE-562): [#def74]
ksh-1.0.10/src/lib/libast/path/pathpath.c: scope_hint: In function 'pathpath_20100601'
ksh-1.0.10/src/lib/libast/path/pathpath.c:130:1: warning[-Wreturn-local-addr]: function may return address of local variable
ksh-1.0.10/src/lib/libast/path/pathpath.c:52:25: note: declared here
ksh-1.0.10/src/lib/libast/path/pathpath.c:52:25: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-131): [#def75]
ksh-1.0.10/src/lib/libast/path/pathtemp.c: scope_hint: In function 'pathtemp'
ksh-1.0.10/src/lib/libast/path/pathtemp.c:229:47: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
ksh-1.0.10/src/lib/libast/path/pathtemp.c:69: included_from: Included from here.
ksh-1.0.10/src/lib/libast/path/pathtemp.c:229:49: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libast/path/pathtemp.c:229:49: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
ksh-1.0.10/src/lib/libast/port/astconf.c: scope_hint: In function 'synthesize.part.0'
ksh-1.0.10/src/lib/libast/port/astconf.c:334:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ksh-1.0.10/src/lib/libast/include/ast.h:32: included_from: Included from here.
ksh-1.0.10/src/lib/libast/misc/univlib.h:40: included_from: Included from here.
ksh-1.0.10/src/lib/libast/port/astconf.c:26: included_from: Included from here.
ksh-1.0.10/src/lib/libast/port/astconf.c:325:49: note: in expansion of macro 'getenv'
ksh-1.0.10/src/lib/libast/port/astconf.c:328:36: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
ksh-1.0.10/src/lib/libast/port/lcgen.c: scope_hint: In function 'main'
ksh-1.0.10/src/lib/libast/port/lcgen.c:273:12: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(hdr, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
ksh-1.0.10/src/lib/libast/port/lcgen.c:273:12: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(hdr, "w")'
Error: CPPCHECK_WARNING (CWE-404): [#def79]
ksh-1.0.10/src/lib/libast/port/lcgen.c:276: error[resourceLeak]: Resource leak: hf
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
ksh-1.0.10/src/lib/libast/port/lcgen.c:310:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(hdr, "w")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
ksh-1.0.10/src/lib/libast/port/lcgen.c:310:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lib, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
ksh-1.0.10/src/lib/libast/port/lcgen.c:310:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(hdr, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
ksh-1.0.10/src/lib/libast/port/lcgen.c:310:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lib, "w")'
Error: CPPCHECK_WARNING (CWE-457): [#def84]
ksh-1.0.10/src/lib/libast/regex/regcomp.c:1937: warning[uninitvar]: Uninitialized variable: *s
Error: CPPCHECK_WARNING (CWE-476): [#def85]
ksh-1.0.10/src/lib/libast/regex/regexec.c:38: warning[nullPointer]: Possible null pointer dereference: match
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
ksh-1.0.10/src/lib/libast/regex/regexec.c: scope_hint: In function 'regexec_20120528.part.0'
ksh-1.0.10/src/lib/libast/regex/regexec.c:38:42: warning[-Wanalyzer-null-dereference]: dereference of NULL 'match'
ksh-1.0.10/src/lib/libast/regex/regexec.c:61:1: note: in expansion of macro 'regexec'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def87]
ksh-1.0.10/src/lib/libast/regex/regexec.c:38:42: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*match.rm_so'
ksh-1.0.10/src/lib/libast/regex/regexec.c:61:1: note: in expansion of macro 'regexec'
ksh-1.0.10/src/lib/libast/regex/reglib.h:56: included_from: Included from here.
ksh-1.0.10/src/lib/libast/regex/regexec.c:26: included_from: Included from here.
ksh-1.0.10/src/lib/libast/regex/regexec.c:69:31: note: in expansion of macro 'oldof'
ksh-1.0.10/src/lib/libast/regex/regexec.c:69:31: note: in expansion of macro 'oldof'
Error: CPPCHECK_WARNING (CWE-476): [#def88]
ksh-1.0.10/src/lib/libast/regex/regexec.c:41: warning[nullPointer]: Possible null pointer dereference: match
Error: GCC_ANALYZER_WARNING (CWE-457): [#def89]
ksh-1.0.10/src/lib/libast/regex/regrexec.c: scope_hint: In function '_ast_regrexec'
ksh-1.0.10/src/lib/libast/regex/regrexec.c:166:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>.rm_so'
ksh-1.0.10/src/lib/libast/regex/regrexec.c:153:1: note: in expansion of macro 'regrexec'
ksh-1.0.10/src/lib/libast/regex/reglib.h:56: included_from: Included from here.
ksh-1.0.10/src/lib/libast/regex/regrexec.c:26: included_from: Included from here.
ksh-1.0.10/src/lib/libast/regex/regrexec.c:161:31: note: in expansion of macro 'oldof'
ksh-1.0.10/src/lib/libast/regex/regrexec.c:161:31: note: in expansion of macro 'oldof'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def90]
ksh-1.0.10/src/lib/libast/sfio/_sfputd.c: scope_hint: In function '_sfputd'
ksh-1.0.10/src/lib/libast/sfio/_sfputd.c:76:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'c[255]'
ksh-1.0.10/src/lib/libast/sfio/_sfputd.c:19: included_from: Included from here.
ksh-1.0.10/src/lib/libast/sfio/_sfputd.c:58:9: note: in expansion of macro 'SFOPEN'
ksh-1.0.10/src/lib/libast/sfio/_sfputd.c:61:9: note: in expansion of macro 'SFLOCK'
Error: CPPCHECK_WARNING: [#def91]
ksh-1.0.10/src/lib/libast/sfio/sfcvt.c:165: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1.18973149535723176502126385303097021e+4932L
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def92]
ksh-1.0.10/src/lib/libast/sfio/sfmode.c:20: included_from: Included from here.
ksh-1.0.10/src/lib/libast/sfio/sfmode.c: scope_hint: In function '_sfpclose'
ksh-1.0.10/src/lib/libast/sfio/sfhdr.h:470:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '((Sfproc_t)**f.proc).file'
ksh-1.0.10/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.10/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.10/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.10/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.10/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
Error: CPPCHECK_WARNING: [#def93]
ksh-1.0.10/src/lib/libast/sfio/sfstrtof.h:534: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1.18973149535723176502126385303097021e+4932L
Error: GCC_ANALYZER_WARNING (CWE-404): [#def94]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c: scope_hint: In function 'sfvprintf'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:154:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:213:25: note: in expansion of macro 'SFputc'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:119:43: note: in expansion of macro 'SFBUF'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:140:55: note: in expansion of macro 'SMputc'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:213:25: note: in expansion of macro 'SFputc'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:1418:9: note: in expansion of macro 'SFEND'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:22: included_from: Included from here.
ksh-1.0.10/src/lib/libast/sfio/sfhdr.h:514:77: note: in expansion of macro '_SFOPEN'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:1430:9: note: in expansion of macro 'SFOPEN'
ksh-1.0.10/src/lib/libast/sfio/sfhdr.h:510:52: note: in expansion of macro '_SFOPENRD'
ksh-1.0.10/src/lib/libast/sfio/sfhdr.h:514:77: note: in expansion of macro '_SFOPEN'
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:1430:9: note: in expansion of macro 'SFOPEN'
Error: CPPCHECK_WARNING (CWE-758): [#def95]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:556: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def96]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:557: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def97]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:561: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def98]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:562: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def99]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:567: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def100]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:571: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def101]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:850: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: GCC_ANALYZER_WARNING (CWE-457): [#def102]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:873:60: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*sp'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def103]
ksh-1.0.10/src/lib/libast/sfio/sfvprintf.c:877:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*sp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c: scope_hint: In function 'sfvscanf'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:729:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'value'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:307:75: note: in expansion of macro 'SFbuf'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:321:9: note: in expansion of macro 'SFinit'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:307:75: note: in expansion of macro 'SFbuf'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:321:9: note: in expansion of macro 'SFinit'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:20: included_from: Included from here.
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:632:24: note: in expansion of macro 'FP_SET'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:632:24: note: in expansion of macro 'FP_SET'
ksh-1.0.10/src/lib/libast/sfio/sfvscanf.c:729:64: note: in expansion of macro 'SFlen'
Error: CPPCHECK_WARNING (CWE-401): [#def105]
ksh-1.0.10/src/lib/libast/stdio/getdelim.c:62: error[memleakOnRealloc]: Common realloc mistake: 's' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-664): [#def106]
ksh-1.0.10/src/lib/libast/string/tokscan.c:203: error[va_list_usedBeforeStarted]: va_list 'prv_ap' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def107]
ksh-1.0.10/src/lib/libast/string/tokscan.c:203: error[va_start_subsequentCalls]: va_start() or va_copy() called subsequently on 'ap' without va_end() in between.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def108]
ksh-1.0.10/src/lib/libast/string/tokscan.c: scope_hint: In function 'tokscan'
ksh-1.0.10/src/lib/libast/string/tokscan.c:244:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: CPPCHECK_WARNING (CWE-682): [#def109]
ksh-1.0.10/src/lib/libcmd/join.c:222: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
ksh-1.0.10/src/lib/libcmd/join.c: scope_hint: In function 'getolist'
ksh-1.0.10/src/lib/libcmd/join.c:251:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'outptr'
ksh-1.0.10/src/lib/libcmd/join.c:90: included_from: Included from here.
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/cmd.h:27: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:209:27: note: in expansion of macro 'mbmax'
ksh-1.0.10/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.10/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.10/arch/linux.i386-64/include/ast/error.h:31: included_from: Included from here.
ksh-1.0.10/src/lib/libcmd/cmd.h:28: included_from: Included from here.
ksh-1.0.10/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
ksh-1.0.10/src/lib/libcmd/join.c:252:20: warning[-Wanalyzer-malloc-leak]: leak of 'outptr'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:209:27: note: in expansion of macro 'mbmax'
ksh-1.0.10/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.10/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:250:27: note: in definition of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:246:39: note: in expansion of macro 'newof'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:250:64: note: in definition of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:246:39: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
ksh-1.0.10/src/lib/libcmd/join.c:282:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'outptr'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:209:27: note: in expansion of macro 'mbmax'
ksh-1.0.10/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.10/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
ksh-1.0.10/src/lib/libcmd/join.c:284:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'outptr'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:209:27: note: in expansion of macro 'mbmax'
ksh-1.0.10/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.10/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.10/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
ksh-1.0.10/src/lib/libcmd/rev.c: scope_hint: In function 'rev_char'
ksh-1.0.10/src/lib/libcmd/rev.c:82:39: warning[-Wanalyzer-null-dereference]: dereference of NULL 'xp'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.10/src/lib/libcmd/cmd.h:27: included_from: Included from here.
ksh-1.0.10/src/lib/libcmd/rev.c:51: included_from: Included from here.
ksh-1.0.10/arch/linux.i386-64/include/ast/sfio.h:357:51: note: in expansion of macro '__sf_value'
ksh-1.0.10/src/lib/libcmd/rev.c:70:38: note: in expansion of macro 'sfvalue'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:209:27: note: in expansion of macro 'mbmax'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:213:27: note: in expansion of macro 'mbwide'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:212:25: note: in expansion of macro 'mbnchar'
ksh-1.0.10/src/lib/libcmd/rev.c:82:41: note: in expansion of macro 'mbchar'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:212:25: note: in expansion of macro 'mbnchar'
ksh-1.0.10/src/lib/libcmd/rev.c:82:41: note: in expansion of macro 'mbchar'
ksh-1.0.10/arch/linux.i386-64/include/ast/ast.h:212:25: note: in expansion of macro 'mbnchar'
ksh-1.0.10/src/lib/libcmd/rev.c:82:41: note: in expansion of macro 'mbchar'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
ksh-1.0.10/src/lib/libsum/sumlib.c:150: included_from: Included from here.
ksh-1.0.10/src/lib/libsum/sum-crc.c: scope_hint: In function 'crc_open'
ksh-1.0.10/src/lib/libsum/sum-crc.c:135:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum.h:28: included_from: Included from here.
ksh-1.0.10/src/lib/libsum/sumlib.c:31: included_from: Included from here.
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
ksh-1.0.10/src/lib/libsum/sum-crc.c:157:35: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
ksh-1.0.10/src/lib/libsum/sum-crc.c:157:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-crc.c:156:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
ksh-1.0.10/src/lib/libsum/sum-crc.c:159:35: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-crc.c:158:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
ksh-1.0.10/src/lib/libsum/sum-crc.c:159:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-crc.c:156:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-crc.c:158:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
ksh-1.0.10/src/lib/libsum/sum-crc.c:161:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-crc.c:156:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-crc.c:158:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-crc.c:160:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
ksh-1.0.10/src/lib/libsum/sum-crc.c:164:38: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-crc.c:156:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-crc.c:158:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-crc.c:160:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-crc.c:162:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
ksh-1.0.10/src/lib/libsum/sum-crc.c:171:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
ksh-1.0.10/src/lib/libsum/sumlib.c:151: included_from: Included from here.
ksh-1.0.10/src/lib/libsum/sum-prng.c: scope_hint: In function 'prng_open'
ksh-1.0.10/src/lib/libsum/sum-prng.c:71:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
ksh-1.0.10/src/lib/libsum/sum-prng.c:73:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-prng.c:70:41: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-prng.c:72:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
ksh-1.0.10/src/lib/libsum/sum-prng.c:73:70: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-prng.c:72:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
ksh-1.0.10/src/lib/libsum/sum-prng.c:75:35: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-prng.c:70:41: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-prng.c:72:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-prng.c:74:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
ksh-1.0.10/src/lib/libsum/sum-prng.c:75:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
ksh-1.0.10/src/lib/libsum/sum-prng.c:72:26: note: in expansion of macro 'strneq'
ksh-1.0.10/src/lib/libsum/sum-prng.c:74:26: note: in expansion of macro 'strneq'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
ksh-1.0.10/src/lib/libsum/sum-prng.c:79:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.10/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.1.1 |
analyzer-version-gcc-analyzer | 15.1.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-50.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.20250509.165649.g41c6174.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | ksh-1.0.10-5.fc43 |
store-results-to | /tmp/tmpqtb406lk/ksh-1.0.10-5.fc43.tar.xz |
time-created | 2025-05-12 14:09:17 |
time-finished | 2025-05-12 14:17:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpqtb406lk/ksh-1.0.10-5.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqtb406lk/ksh-1.0.10-5.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |