ksh-1.0.8-4.fc41
List of Defects
Error: COMPILER_WARNING: [#def1]
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_std.h:34: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/cmd/ksh93/874c48750.c:2: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_standards.h:12:9: warning: "basename" redefined
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_common.h:152: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/bytesex.h:27: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/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.8-build/ksh-1.0.8/arch/linux.i386-64/src/cmd/ksh93/874c48750.c:1: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_map.h:12:9: note: this is the location of the previous definition
Error: COMPILER_WARNING: [#def2]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:47: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c: scope_hint: In function 'sh_reinit'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/cdt.h:265:26: warning[-Wsequence-point]: operation on 'sh.fun_base' may be undefined
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/cdt.h:305:28: note: in expansion of macro '_DT'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1609:9: note: in expansion of macro 'dtclear'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:47: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c: scope_hint: In function 'sh_inittree'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/cdt.h:298:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'treep'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1988:17: note: in expansion of macro 'dtinsert'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1822:22: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1822:22: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1984:20: note: in expansion of macro 'nv_isattr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1984:20: note: in expansion of macro 'nv_isattr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1988:17: note: in expansion of macro 'dtinsert'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:24: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c: scope_hint: In function 'sh_outtype'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:305:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'iop'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1486:41: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:26: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1428:22: note: in expansion of macro 'L_ARGNOD'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:47: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1433:29: note: in expansion of macro 'dtfirst'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:170:26: note: in expansion of macro 'nv_isattr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:171:27: note: in expansion of macro 'nv_isnonptr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1444:20: note: in expansion of macro 'nv_isnull'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1448:28: note: in expansion of macro 'L_ARGNOD'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1470:28: note: in expansion of macro 'nv_isattr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1477:36: note: in expansion of macro 'nv_isattr'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1486:41: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1486:41: note: in expansion of macro 'sfputc'
Error: COMPILER_WARNING (CWE-681): [#def5]
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/conf.tmp.c:14:1: warning[-Woverflow]: unsigned conversion from 'long int' to 'unsigned int' changes value from '9223372036854775807' to '4294967295'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/conf.tmp.c: scope_hint: In function 'main'
ksh-1.0.8-build/ksh-1.0.8/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): [#def7]
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/conf.tmp.c: scope_hint: In function 'main'
ksh-1.0.8-build/ksh-1.0.8/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): [#def8]
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/conf.tmp.c:73:1: warning[-Woverflow]: unsigned conversion from 'long int' to 'unsigned int' changes value from '9223372036854775807' to '4294967295'
Error: COMPILER_WARNING (CWE-697): [#def9]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/strptime.c:27: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/strptime.c: scope_hint: In function 'strptime'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/tmx.h:34:36: warning[-Waddress]: the address of 't' will always evaluate as 'true'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/tmx.h:25:38: note: in definition of macro 'tmxsns'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/strptime.c:62:20: note: in expansion of macro 'tmxclock'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/intl.c: scope_hint: In function 'main'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/intl.c:25:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ksh-1.0.8-build/ksh-1.0.8/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): [#def11]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c: scope_hint: In function 'run.part.0'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:158:85: warning[-Wanalyzer-null-dereference]: dereference of NULL '*<unknown>.nxt'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1306:33: note: in expansion of macro 'add'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:26: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:65: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:65: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1306:33: note: in expansion of macro 'add'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1306:33: note: in expansion of macro 'add'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1306:33: note: in expansion of macro 'add'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1306:33: note: in expansion of macro 'add'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c: scope_hint: In function 'buffer'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:437:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buf'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:26: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:26: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:20: warning[-Wanalyzer-malloc-leak]: leak of '*buf.buf'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:34: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:34: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:34: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:470:26: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:26: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:65: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:65: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:34: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:34: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:467:34: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c: scope_hint: In function 'appendn'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:472:9: warning[-Wanalyzer-null-argument]: use of NULL '*buf.nxt' where non-null expected
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:26: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:65: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:435:65: note: in expansion of macro 'newof'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: CLANG_WARNING: [#def16]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:593:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: COMPILER_WARNING: [#def17]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c: scope_hint: In function 'search'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:593:17: warning[-Wstringop-overflow=]: 'strcpy' writing 1 or more bytes into a region of size 0 overflows the destination
cc1: note: destination object is likely at address zero
Error: CPPCHECK_WARNING (CWE-457): [#def18]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:773: warning[uninitvar]: Uninitialized variable: p
Error: CLANG_WARNING: [#def19]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:773:35: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
Error: CLANG_WARNING: [#def20]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:783:19: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'zp')
Error: CLANG_WARNING: [#def21]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1114:7: warning[core.NullDereference]: Access to field 'fp' results in a dereference of a null pointer (loaded from field 'sp')
Error: CLANG_WARNING: [#def22]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1407:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p')
Error: CLANG_WARNING: [#def23]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1458:14: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 's')
Error: CPPCHECK_WARNING (CWE-768): [#def24]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1476: error[unknownEvaluationOrder]: Expression '*(tmp)->nxt=0,tmp->nxt=(tmp)->buf' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-476): [#def25]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1611: error[nullPointer]: Null pointer dereference
Error: CLANG_WARNING: [#def26]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/INIT/mamake.c:1658:7: warning[unix.Malloc]: Use of memory after it is freed
Error: CLANG_WARNING: [#def27]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/builtin/pty.c:902:10: warning[deadcode.DeadStores]: Although the value stored to 'm' is used in the enclosing expression, the value is never actually read from 'm'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/cd_pwd.c: scope_hint: In function 'b_cd'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/cd_pwd.c:151:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/error.h:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/cd_pwd.c:30: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/cd_pwd.c:89:17: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/cd_pwd.c:149:22: note: in expansion of macro 'sfstruse'
Error: CLANG_WARNING: [#def29]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/misc.c:328:3: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def30]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/misc.c: scope_hint: In function 'b_dot_cmd'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/misc.c:328:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'saveargfor'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/shell.h:34: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:69: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/misc.c:40: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/stk.h:41:35: note: in definition of macro 'stkptr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/shell.h:40: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/misc.c:302:9: note: in expansion of macro 'sh_pushcontext'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/fault.h:27: included_from: Included from here.
Error: COMPILER_WARNING: [#def31]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c: scope_hint: In function 'b_print'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:181:23: warning[-Wdangling-pointer=]: storing the address of local variable 'disc' in '_opt_infop_.1_1->disc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:177:19: note: 'disc' declared here
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/error.h:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:29: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/option.h:74:25: note: '_opt_infop_' declared here
Error: CPPCHECK_WARNING (CWE-476): [#def32]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:524: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CPPCHECK_WARNING (CWE-476): [#def33]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:564: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CPPCHECK_WARNING (CWE-758): [#def34]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:998: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def35]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:1064: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def36]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:1074: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def37]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/print.c:1077: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CLANG_WARNING: [#def38]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:308:30: warning[core.NullDereference]: Array access (via field 'c_cc') results in a null pointer dereference
Error: CLANG_WARNING: [#def39]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:380:4: warning[deadcode.DeadStores]: Value stored to 'cp' is never read
Error: CLANG_WARNING: [#def40]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:538:12: warning[core.NullDereference]: Access to field 'histfp' results in a dereference of a null pointer (loaded from field 'hist_ptr')
Error: CLANG_WARNING: [#def41]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:585:7: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c: scope_hint: In function 'sh_readline'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:585:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'ifs'
Error: CLANG_WARNING: [#def43]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:756:9: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def44]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:758:9: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def45]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:844:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def46]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/read.c:857:2: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'buff' is still referred to by the global variable 'sh' upon returning to the caller. This will be a dangling reference
Error: CLANG_WARNING: [#def47]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c:86:12: warning[core.NullDereference]: Dereference of null pointer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c: scope_hint: In function 'test_strmatch'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c:86:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cp'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c:553:52: note: in expansion of macro 'sfstruse'
Error: CLANG_WARNING: [#def49]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c:135:20: warning[deadcode.DeadStores]: Although the value stored to 'not' is used in the enclosing expression, the value is never actually read from 'not'
Error: CLANG_WARNING: [#def50]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/test.c:301:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'arg')
Error: CLANG_WARNING: [#def51]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/trap.c:46:8: warning[deadcode.DeadStores]: Value stored to 'arg' during its initialization is never read
Error: CLANG_WARNING: [#def52]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/typeset.c:1036:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CPPCHECK_WARNING (CWE-682): [#def53]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/typeset.c:1220: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: CLANG_WARNING: [#def54]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/typeset.c:1238:27: warning[deadcode.DeadStores]: Although the value stored to 'np' is used in the enclosing expression, the value is never actually read from 'np'
Error: CLANG_WARNING: [#def55]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/bltins/typeset.c:1516:5: warning[deadcode.DeadStores]: Value stored to 'flag' is never read
Error: CPPCHECK_WARNING (CWE-457): [#def56]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/completion.c:51: error[legacyUninitvar]: Uninitialized variable: hc[0]
Error: CLANG_WARNING: [#def57]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/completion.c:284:7: warning[deadcode.DeadStores]: Value stored to 'c' during its initialization is never read
Error: CLANG_WARNING: [#def58]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/completion.c:321:3: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def59]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/edit.c:842:4: warning[deadcode.DeadStores]: Although the value stored to 'endp' is used in the enclosing expression, the value is never actually read from 'endp'
Error: CLANG_WARNING: [#def60]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:645:10: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
Error: GCC_ANALYZER_WARNING (CWE-457): [#def61]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c: scope_hint: In function 'hist_eof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:645:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'oldind'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/error.h:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:79: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:43: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:363:51: note: in expansion of macro '__sf_fileno'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:1112:32: note: in expansion of macro 'sffileno'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:298:36: note: in definition of macro '_SF_'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:368:51: note: in expansion of macro '__sf_value'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:575:21: note: in expansion of macro 'sfvalue'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:298:36: note: in definition of macro '_SF_'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:641:17: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:298:36: note: in definition of macro '_SF_'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:674:9: note: in expansion of macro 'sfputc'
Error: CLANG_WARNING: [#def62]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:703:17: warning[unix.Malloc]: Use of memory after it is freed
Error: CLANG_WARNING: [#def63]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:994:30: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c: scope_hint: In function 'hist_word'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:1015:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cp'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:357:51: note: in expansion of macro '__sf_getc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:972:21: note: in expansion of macro 'sfgetc'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:357:51: note: in expansion of macro '__sf_getc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:972:21: note: in expansion of macro 'sfgetc'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:357:51: note: in expansion of macro '__sf_getc'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c:972:21: note: in expansion of macro 'sfgetc'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def65]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/edit/history.c: scope_hint: In function 'hist_locate'
ksh-1.0.8-build/ksh-1.0.8/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): [#def66]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:26: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c: scope_hint: In function 'arith'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/nval.h:206:38: warning[-Wanalyzer-null-dereference]: dereference of NULL 'np'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:243:20: note: in expansion of macro 'nv_isattr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:243:20: note: in expansion of macro 'nv_isattr'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:37: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c: scope_hint: In function 'nv_init'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/variables.h:100:28: warning[-Wanalyzer-malloc-leak]: leak of 'sh_calloc(1, 40)'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1929:38: note: in expansion of macro 'SH_VERSIONNOD'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1822:22: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1822:22: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1928:34: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1928:34: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1929:38: note: in expansion of macro 'SH_VERSIONNOD'
Error: CLANG_WARNING: [#def68]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/args.c:374:4: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setuid' is not checked. If an error occurs in 'setuid', the following code may execute with unexpected privileges
Error: CLANG_WARNING: [#def69]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/args.c:375:4: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setgid' is not checked. If an error occurs in 'setgid', the following code may execute with unexpected privileges
Error: CLANG_WARNING: [#def70]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/args.c:580:4: warning[deadcode.DeadStores]: Value stored to 'value' is never read
Error: CLANG_WARNING: [#def71]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:82:19: warning[deadcode.DeadStores]: Although the value stored to 'sub' is used in the enclosing expression, the value is never actually read from 'sub'
Error: CLANG_WARNING: [#def72]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:284:9: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: CLANG_WARNING: [#def73]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:295:5: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def74]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:382:7: warning[core.NullDereference]: Access to field 'nvflag' results in a dereference of a null pointer (loaded from variable 'np')
Error: CLANG_WARNING: [#def75]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/arith.c:490:12: warning[deadcode.DeadStores]: Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'
Error: CLANG_WARNING: [#def76]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/array.c:100:10: warning[deadcode.DeadStores]: Although the value stored to 'fp' is used in the enclosing expression, the value is never actually read from 'fp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/array.c: scope_hint: In function 'array_maxindex'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/array.c:183:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:56: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:49: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/array.c:29: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/array.c:1822:25: note: in expansion of macro 'nv_offattr'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/name.h:171:67: note: in expansion of macro '_nv_hasget'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/array.c:1823:29: note: in expansion of macro 'nv_isnull'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c: scope_hint: In function 'path_expand'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c:116:76: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c:107:30: note: in expansion of macro 'sfstruse'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_sys.h:10: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_std.h:66: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/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: CLANG_WARNING: [#def79]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c:402:5: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def80]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c: scope_hint: In function 'path_generate'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c:402:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'format'
Error: CLANG_WARNING: [#def81]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/expand.c:438:10: warning[deadcode.DeadStores]: Although the value stored to 'ap' is used in the enclosing expression, the value is never actually read from 'ap'
Error: CLANG_WARNING: [#def82]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/fault.c:337:13: warning[deadcode.DeadStores]: Value stored to 'sig' during its initialization is never read
Error: CLANG_WARNING: [#def83]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/fault.c:600:13: warning[core.NullDereference]: Access to field 'mode' results in a dereference of a null pointer (loaded from variable 'pp')
Error: CLANG_WARNING: [#def84]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:772:67: warning[deadcode.DeadStores]: Although the value stored to 'pid' is used in the enclosing expression, the value is never actually read from 'pid'
Error: CLANG_WARNING: [#def85]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:891:3: warning[deadcode.DeadStores]: Value stored to 'np' is never read
Error: CLANG_WARNING: [#def86]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:943:27: warning[unix.Malloc]: Use of memory allocated with size zero
Error: CLANG_WARNING: [#def87]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1460:4: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setuid' is not checked. If an error occurs in 'setuid', the following code may execute with unexpected privileges
Error: CLANG_WARNING: [#def88]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1461:4: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setgid' is not checked. If an error occurs in 'setgid', the following code may execute with unexpected privileges
Error: CLANG_WARNING: [#def89]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:1988:3: warning[core.NullDereference]: Access to field 'searchf' results in a dereference of a null pointer (loaded from variable 'treep')
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c: scope_hint: In function 'nv_mapchar'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:2204:16: warning[-Wanalyzer-malloc-leak]: leak of 'sh_calloc(1, n + 72)'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:2191:14: note: in expansion of macro 'sh_newof'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/init.c:2191:14: note: in expansion of macro 'sh_newof'
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def91]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c: scope_hint: In function 'sh_close'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:718:26: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/error.h:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:29: included_from: Included from here.
Error: GCC_ANALYZER_WARNING: [#def92]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c: scope_hint: In function 'sh_iomovefd.part.0'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:909:17: warning[-Wanalyzer-fd-use-without-check]: 'dup' on possibly invalid file descriptor 'fdold'
Error: CLANG_WARNING: [#def93]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:1088:7: warning[deadcode.DeadStores]: Although the value stored to 'ep' is used in the enclosing expression, the value is never actually read from 'ep'
Error: CLANG_WARNING: [#def94]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:1096:3: warning[deadcode.DeadStores]: Value stored to 'ep' is never read
Error: CLANG_WARNING: [#def95]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:1880:6: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
Error: CLANG_WARNING: [#def96]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/io.c:2517:32: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def97]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/jobs.c:988:4: warning[deadcode.DeadStores]: Value stored to 'r' is never read
Error: CLANG_WARNING: [#def98]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/lex.c:145:6: warning[core.NullDereference]: Access to field '_file' results in a dereference of a null pointer (loaded from variable 'iop')
Error: CLANG_WARNING: [#def99]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/lex.c:926:9: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
Error: CLANG_WARNING: [#def100]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/lex.c:931:10: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
Error: CLANG_WARNING: [#def101]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/lex.c:1084:8: warning[deadcode.DeadStores]: Value stored to 'state' is never read
Error: CLANG_WARNING: [#def102]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:199:8: warning[deadcode.DeadStores]: Value stored to 'str' during its initialization is never read
Error: CLANG_WARNING: [#def103]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:480:19: warning[core.NullDereference]: Dereference of null pointer
Error: CLANG_WARNING: [#def104]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:591:4: warning[deadcode.DeadStores]: Value stored to 'first' is never read
Error: CLANG_WARNING: [#def105]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:668:4: warning[deadcode.DeadStores]: Value stored to 'first' is never read
Error: CLANG_WARNING: [#def106]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:723:5: warning[deadcode.DeadStores]: Value stored to 'first' is never read
Error: CLANG_WARNING: [#def107]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:1355:9: warning[deadcode.DeadStores]: Although the value stored to 'd' is used in the enclosing expression, the value is never actually read from 'd'
Error: CLANG_WARNING: [#def108]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:1986:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def109]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:2004:7: warning[deadcode.DeadStores]: Value stored to 'dolmax' is never read
Error: CLANG_WARNING: [#def110]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:2288:2: warning[deadcode.DeadStores]: Value stored to 'bufsize' is never read
Error: CLANG_WARNING: [#def111]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:2518:32: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: CLANG_WARNING: [#def112]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/macro.c:2535:32: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: CLANG_WARNING: [#def113]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/main.c:267:11: warning[deadcode.DeadStores]: Although the value stored to 'type' is used in the enclosing expression, the value is never actually read from 'type'
Error: CLANG_WARNING: [#def114]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/main.c:267:26: warning[deadcode.DeadStores]: Although the value stored to 'cp' is used in the enclosing expression, the value is never actually read from 'cp'
Error: CLANG_WARNING: [#def115]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/main.c:452:6: warning[deadcode.DeadStores]: Although the value stored to 'top' is used in the enclosing expression, the value is never actually read from 'top'
Error: CLANG_WARNING: [#def116]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:555:27: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def117]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:666:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def118]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:1550:35: warning[deadcode.DeadStores]: Although the value stored to 'mp' is used in the enclosing expression, the value is never actually read from 'mp'
Error: CLANG_WARNING: [#def119]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:1699:9: warning[core.NullDereference]: Access to field 'ldp' results in a dereference of a null pointer (loaded from variable 'up')
Error: CLANG_WARNING: [#def120]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:1719:9: warning[core.NullDereference]: Access to field 'dp' results in a dereference of a null pointer (loaded from variable 'up')
Error: CLANG_WARNING: [#def121]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:1974:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def122]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:3348:13: warning[core.NullDereference]: Access to field 'nvenv' results in a dereference of a null pointer (loaded from variable 'mp')
Error: CLANG_WARNING: [#def123]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:3351:77: warning[deadcode.DeadStores]: Although the value stored to 'ap' is used in the enclosing expression, the value is never actually read from 'ap'
Error: CLANG_WARNING: [#def124]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/name.c:3465:6: warning[core.NullDereference]: Access to field 'nvflag' results in a dereference of a null pointer (loaded from variable 'nq')
Error: CLANG_WARNING: [#def125]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvdisc.c:49:8: warning[deadcode.DeadStores]: Although the value stored to 'nfp' is used in the enclosing expression, the value is never actually read from 'nfp'
Error: CLANG_WARNING: [#def126]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvdisc.c:120:8: warning[deadcode.DeadStores]: Although the value stored to 'nfp' is used in the enclosing expression, the value is never actually read from 'nfp'
Error: CLANG_WARNING: [#def127]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvdisc.c:913:5: warning[deadcode.DeadStores]: Although the value stored to 'fp' is used in the enclosing expression, the value is never actually read from 'fp'
Error: CLANG_WARNING: [#def128]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtree.c:365:12: warning[core.NullDereference]: Access to field 'nvname' results in a dereference of a null pointer (loaded from variable 'tp')
Error: CLANG_WARNING: [#def129]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtree.c:622:16: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'xp')
Error: CLANG_WARNING: [#def130]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtree.c:701:4: warning[deadcode.DeadStores]: Value stored to 'fp' is never read
Error: CLANG_WARNING: [#def131]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtree.c:909:7: warning[core.NullDereference]: Access to field '_next' results in a dereference of a null pointer (loaded from variable 'outfile')
Error: CLANG_WARNING: [#def132]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtree.c:1117:3: warning[deadcode.DeadStores]: Value stored to 'fp' is never read
Error: CLANG_WARNING: [#def133]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:291:23: warning[core.NullDereference]: Access to field 'np' results in a dereference of a null pointer (loaded from field 'nrp')
Error: CLANG_WARNING: [#def134]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:293:23: warning[core.NullDereference]: Access to field 'np' results in a dereference of a null pointer (loaded from field 'nrp')
Error: CLANG_WARNING: [#def135]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:351:10: warning[deadcode.DeadStores]: Value stored to 'root' during its initialization is never read
Error: CLANG_WARNING: [#def136]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:600:15: warning[deadcode.DeadStores]: Although the value stored to 'cp' is used in the enclosing expression, the value is never actually read from 'cp'
Error: CLANG_WARNING: [#def137]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:849:6: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def138]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:997:49: warning[deadcode.DeadStores]: Although the value stored to 'size' is used in the enclosing expression, the value is never actually read from 'size'
Error: CLANG_WARNING: [#def139]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1054:7: warning[deadcode.DeadStores]: Although the value stored to 'fp' is used in the enclosing expression, the value is never actually read from 'fp'
Error: CLANG_WARNING: [#def140]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/nvtype.c:1486:6: warning[core.NullDereference]: Access to field '_next' results in a dereference of a null pointer (loaded from variable 'iop')
Error: CLANG_WARNING: [#def141]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/parse.c:739:7: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: CLANG_WARNING: [#def142]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/parse.c:982:23: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def143]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/parse.c:1182:6: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def144]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/parse.c:1464:6: warning[core.NullDereference]: Dereference of null pointer
Error: CPPCHECK_WARNING (CWE-682): [#def145]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/parse.c:1952: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: CLANG_WARNING: [#def146]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:411:17: warning[deadcode.DeadStores]: Although the value stored to 'pp' is used in the enclosing expression, the value is never actually read from 'pp'
Error: CLANG_WARNING: [#def147]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:418:3: warning[deadcode.DeadStores]: Value stored to 'pp' is never read
Error: CLANG_WARNING: [#def148]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:677:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def149]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:690:16: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'name')
Error: CLANG_WARNING: [#def150]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:814:29: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def151]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:932:14: warning[unix.Malloc]: Use of memory after it is freed
Error: CLANG_WARNING: [#def152]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/path.c:1178:3: warning[unix.Malloc]: Argument to free() is the address of the global variable 'e_dot', which is not memory allocated by malloc()
Error: CLANG_WARNING: [#def153]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:218:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def154]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:272:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def155]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:329:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def156]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:332:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def157]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:335:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def158]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:338:10: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
Error: CLANG_WARNING: [#def159]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:344:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '%' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def160]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:346:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '%' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def161]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:351:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '/' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def162]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:357:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '/' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def163]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:359:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '/' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def164]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:363:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def165]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:365:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def166]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:369:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def167]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:371:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def168]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:375:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '^' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def169]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:377:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '^' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def170]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:381:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '|' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def171]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:383:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '|' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def172]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:387:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def173]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:389:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def174]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:392:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def175]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:396:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def176]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:400:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<=' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def177]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:404:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def178]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:408:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def179]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:412:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value due to array index out of bounds
Error: CLANG_WARNING: [#def180]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:417:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
Error: CLANG_WARNING: [#def181]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:431:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
Error: CLANG_WARNING: [#def182]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:437:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
Error: CLANG_WARNING: [#def183]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:455:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
Error: CLANG_WARNING: [#def184]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/streval.c:461:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
Error: CLANG_WARNING: [#def185]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/subshell.c:169:5: warning[core.NullDereference]: Access to field 'pipe' results in a dereference of a null pointer (loaded from variable 'sp')
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def186]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/subshell.c: scope_hint: In function 'sh_subshell'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/subshell.c:738:31: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '1'
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/fault.h:27: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/shell.h:40: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:69: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/subshell.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/error.h:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/include/defs.h:45: included_from: Included from here.
Error: CLANG_WARNING: [#def187]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/tdump.c:235:8: warning[deadcode.DeadStores]: Although the value stored to 'cp' is used in the enclosing expression, the value is never actually read from 'cp'
Error: CLANG_WARNING: [#def188]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:1117:9: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'com0')
Error: CLANG_WARNING: [#def189]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:1273:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def190]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:1842:19: warning[core.NullDereference]: Dereference of null pointer
Error: CLANG_WARNING: [#def191]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:2306:4: warning[core.UndefinedBinaryOperatorResult]: The right operand of '-' is a garbage value
Error: CLANG_WARNING: [#def192]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:2345:15: warning[deadcode.DeadStores]: Value stored to 'oldnspace' during its initialization is never read
Error: CLANG_WARNING: [#def193]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:2363:5: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
Error: CLANG_WARNING: [#def194]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:2365:6: warning[deadcode.DeadStores]: Value stored to 'root' is never read
Error: CLANG_WARNING: [#def195]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:2711:7: warning[core.NullDereference]: Dereference of null pointer
Error: CLANG_WARNING: [#def196]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:2943:2: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
Error: CLANG_WARNING: [#def197]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:3148:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def198]
ksh-1.0.8-build/ksh-1.0.8/src/cmd/ksh93/sh/xec.c:3412:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def199]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/cdt/dthash.c:307:20: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'tbl')
Error: CLANG_WARNING: [#def200]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/cdt/dtview.c:48:12: warning[core.NullDereference]: Access to field 'walk' results in a dereference of a null pointer (loaded from variable 'dt')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/cdt/dtview.c: scope_hint: In function 'dtvsearch.part.0'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/cdt/dtview.c:48:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dt'
Error: CLANG_WARNING: [#def202]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/iconv.c:661:4: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def203]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/regcmp.c:75:18: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'pattern')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/regcmp.c: scope_hint: In function 'regcmp'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/regcmp.c:75:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: COMPILER_WARNING (CWE-823): [#def205]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c: scope_hint: In function 'debug_strxfrm'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:317:76: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def206]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:332:61: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def207]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:334:61: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def208]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:349:61: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def209]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:351:61: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def210]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:353:61: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def211]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:364:53: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def212]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/setlocale.c:2433:66: warning[core.NullDereference]: Array access (via field 'name') results in a null pointer dereference
Error: CPPCHECK_WARNING: [#def213]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/strtold.c: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1.18973149535723176502126385303097021e+4932L
Error: CLANG_WARNING: [#def214]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/wordexp.c:166:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'av'
Error: CLANG_WARNING: [#def215]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/wordexp.c:169:27: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def216]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/wordexp.c:183:9: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: CLANG_WARNING: [#def217]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcfilter.c:103:2: warning[deadcode.DeadStores]: Value stored to 'addr' is never read
Error: CLANG_WARNING: [#def218]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcfilter.c:104:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
Error: CLANG_WARNING: [#def219]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcmore.c:150:8: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 's')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcmore.c: scope_hint: In function 'morewrite.part.0'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcmore.c:150:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 's'
Error: CPPCHECK_WARNING (CWE-401): [#def221]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcmore.c:311: error[memleak]: Memory leak: more
Error: CPPCHECK_WARNING (CWE-401): [#def222]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcmore.c:317: error[memleak]: Memory leak: more
Error: CPPCHECK_WARNING (CWE-401): [#def223]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcmore.c:322: error[memleak]: Memory leak: more
Error: CLANG_WARNING: [#def224]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfdcprefix.c:71:8: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
Error: CLANG_WARNING: [#def225]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfkeyprintf.c:184:43: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CPPCHECK_WARNING (CWE-682): [#def226]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/disc/sfkeyprintf.c:232: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def227]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c: scope_hint: In function 'hashalloc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:148:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlib.h:29: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:83:40: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def228]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:162:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:66:26: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def229]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:169:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashalloc.c:83:40: note: in expansion of macro 'newof'
Error: CLANG_WARNING: [#def230]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashfree.c:86:16: warning[unix.Malloc]: Use of memory after it is freed
Error: GCC_ANALYZER_WARNING (CWE-416): [#def231]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashfree.c: scope_hint: In function 'hashfree'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashfree.c:86:76: warning[-Wanalyzer-use-after-free]: use after 'free' of '*b.name'
Error: CPPCHECK_WARNING (CWE-476): [#def232]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlook.c:48: warning[nullPointer]: Possible null pointer dereference: (unsigned int*)value
Error: CLANG_WARNING: [#def233]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlook.c:84:32: warning[core.NullDereference]: Access to field 'hash' results in a dereference of a null pointer (loaded from field 'bucket')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlook.c: scope_hint: In function 'hashlook'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlook.c:90:49: warning[-Wanalyzer-null-dereference]: dereference of NULL 'value'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def235]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlook.c:207:41: warning[-Wanalyzer-null-argument]: use of NULL 'value' where non-null expected
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def236]
ksh-1.0.8-build/ksh-1.0.8/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: CLANG_WARNING: [#def237]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/hash/hashlook.c:327:10: warning[core.NullDereference]: Access to field 'hash' results in a dereference of a null pointer (loaded from variable 'b')
Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/systrace.c:26: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/systrace.c: scope_hint: In function 'systrace'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/proc.h:68:85: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 1)'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/proc.h:72:33: note: in expansion of macro 'PROC_op2'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/systrace.c:55:17: note: in expansion of macro 'PROC_FD_DUP'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/proc.h:68:88: note: in definition of macro 'PROC_op2'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/systrace.c:55:17: note: in expansion of macro 'PROC_FD_DUP'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/proc.h:72:33: note: in expansion of macro 'PROC_op2'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/systrace.c:55:17: note: in expansion of macro 'PROC_FD_DUP'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optlib.h:30: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:30: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c: scope_hint: In function 'expand'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:395:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ip'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:838:13: note: in expansion of macro 'sfstrtell'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/error.h:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optlib.h:109: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5738:17: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4302:24: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:838:13: note: in expansion of macro 'sfstrtell'
Error: CLANG_WARNING: [#def240]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:357:9: warning[deadcode.DeadStores]: Although the value stored to 'j' is used in the enclosing expression, the value is never actually read from 'j'
Error: CLANG_WARNING: [#def241]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:651:5: warning[core.NullDereference]: Access to field 'disc' results in a dereference of a null pointer (loaded from variable 'fp')
Error: CLANG_WARNING: [#def242]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:651:5: warning[core.NullDereference]: Access to field 'disc' results in a dereference of an undefined pointer value (loaded from variable 'fp')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:651:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fp'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/findlib.h:33: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:76: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/vmalloc.h:285:37: note: in expansion of macro 'vmresize'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:174:37: note: in expansion of macro 'vmnewof'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def244]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c: scope_hint: In function 'findopen'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:651:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'fp'
Error: CLANG_WARNING: [#def245]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:815:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def246]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c: scope_hint: In function 'findread'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:815:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'p'
Error: CLANG_WARNING: [#def247]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:845:22: warning[core.NullDereference]: Dereference of undefined pointer value (loaded from variable 'p')
Error: GCC_ANALYZER_WARNING (CWE-457): [#def248]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:845:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'p'
Error: CLANG_WARNING: [#def249]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:852:5: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def250]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:854:5: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def251]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:856:5: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def252]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:858:5: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def253]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:7: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value
Error: CLANG_WARNING: [#def254]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:873:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: GCC_ANALYZER_WARNING (CWE-457): [#def255]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:873:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'p'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:21: note: in expansion of macro 'FF_OK_TYPE'
Error: CLANG_WARNING: [#def256]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:902:9: warning[core.NullDereference]: Dereference of undefined pointer value (loaded from variable 'p')
Error: GCC_ANALYZER_WARNING (CWE-457): [#def257]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:902:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'p'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:21: note: in expansion of macro 'FF_OK_TYPE'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def258]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/findlib.h:50:72: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 't'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:21: note: in expansion of macro 'FF_OK_TYPE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:21: note: in expansion of macro 'FF_OK_TYPE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:21: note: in expansion of macro 'FF_OK_TYPE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fastfind.c:869:21: note: in expansion of macro 'FF_OK_TYPE'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c: scope_hint: In function 'fts_read'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:172:16: warning[-Wanalyzer-malloc-leak]: leak of 'node(fts, *fts.current, s, i)'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:180:27: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:107:39: note: in definition of macro 'TYPE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:1024:41: note: in expansion of macro 'D_TYPE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/dir/dirlib.h:35: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/ast_dir.h:40: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:29: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-476): [#def260]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:362: warning[nullPointer]: Possible null pointer dereference: root
Error: CLANG_WARNING: [#def261]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:362:7: warning[core.NullDereference]: Access to field 'left' results in a dereference of a null pointer (loaded from variable 'root')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c: scope_hint: In function 'getlist'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:362:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'root'
Error: CLANG_WARNING: [#def263]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:542:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def264]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:867:8: warning[core.NullDereference]: Access to field 'fts_level' results in a dereference of a null pointer (loaded from variable 'f')
Error: CLANG_WARNING: [#def265]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:911:8: warning[core.NullDereference]: Access to field 'fts_info' results in a dereference of a null pointer (loaded from variable 'f')
Error: CLANG_WARNING: [#def266]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:953:21: warning[core.NullDereference]: Access to field 'nd' results in a dereference of a null pointer (loaded from variable 'f')
Error: CLANG_WARNING: [#def267]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/fts.c:1252:19: warning[core.NullDereference]: Access to field 'fts_namelen' results in a dereference of a null pointer (loaded from variable 'f')
Error: CLANG_WARNING: [#def268]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/getcwd.c:56:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf'
Error: CPPCHECK_WARNING (CWE-562): [#def269]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/glob.c:666: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CLANG_WARNING: [#def270]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/glob.c:775:2: warning[deadcode.DeadStores]: Value stored to 'suflen' is never read
Error: CLANG_WARNING: [#def271]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:683:9: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: CLANG_WARNING: [#def272]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:683:77: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
Error: COMPILER_WARNING (CWE-823): [#def273]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c: scope_hint: In function 'ckenglish'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:950:60: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def274]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:952:60: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def275]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:954:60: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def276]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:2339:4: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: CLANG_WARNING: [#def277]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:2419:5: warning[core.NullDereference]: Dereference of null pointer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c: scope_hint: In function 'magiclist'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/magic.c:2421:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ep'
Error: CLANG_WARNING: [#def279]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:776:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: COMPILER_WARNING (CWE-823): [#def280]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c: scope_hint: In function 'init'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:909:35: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def281]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:911:37: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c: scope_hint: In function 'optget'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:1182:13: warning[-Wanalyzer-malloc-leak]: leak of 'info(psp, next(s, version) + 1, 0, xp, id)'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5738:17: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4302:24: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:1184:19: note: in expansion of macro 'newof'
Error: CLANG_WARNING: [#def283]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:1361:4: warning[unix.Malloc]: Argument to free() is the address of the static variable 'push', which is not memory allocated by malloc()
Error: COMPILER_WARNING (CWE-126): [#def284]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c: scope_hint: In function 'args'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:1599:36: warning[-Wstringop-overread]: 'memchr' specified bound [18446744071562067968, 0] exceeds maximum object size 9223372036854775807
Error: CLANG_WARNING: [#def285]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:2003:5: warning[unix.Malloc]: Argument to free() is the address of the static variable 'push', which is not memory allocated by malloc()
Error: CLANG_WARNING: [#def286]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:2013:7: warning[deadcode.DeadStores]: Value stored to 'f' is never read
Error: CLANG_WARNING: [#def287]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:2135:8: warning[unix.Malloc]: Argument to free() is the address of the static variable 'push', which is not memory allocated by malloc()
Error: CLANG_WARNING: [#def288]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:2916:5: warning[unix.Malloc]: Argument to free() is the address of the static variable 'push', which is not memory allocated by malloc()
Error: CLANG_WARNING: [#def289]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:2981:13: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
Error: CLANG_WARNING: [#def290]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:3015:11: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
Error: CLANG_WARNING: [#def291]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:3963:8: warning[deadcode.DeadStores]: Value stored to 'tp' is never read
Error: CLANG_WARNING: [#def292]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4374:2: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def293]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4495:10: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: GCC_ANALYZER_WARNING (CWE-124): [#def294]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4771:70: warning[-Wanalyzer-out-of-bounds]: buffer underwrite
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5738:17: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4302:24: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4768:49: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4768:49: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4768:49: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:863:17: note: in expansion of macro 'sfstruse'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4771:70: note: valid subscripts for '"error"' are '[0]' to '[5]'
Error: GCC_ANALYZER_WARNING (CWE-471): [#def295]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4771:70: warning[-Wanalyzer-write-to-string-literal]: write to string literal
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5738:17: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4302:24: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4768:49: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4768:49: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/sfio.h:356:51: note: in expansion of macro '__sf_putc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4768:49: note: in expansion of macro 'sfputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:863:17: note: in expansion of macro 'sfstruse'
Error: CLANG_WARNING: [#def296]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:4927:9: warning[deadcode.DeadStores]: Value stored to 'psp' is never read
Error: COMPILER_WARNING (CWE-823): [#def297]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c: scope_hint: In function 'optget'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5030:82: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def298]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5149:58: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def299]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5445:10: warning[deadcode.DeadStores]: Value stored to 'nov' is never read
Error: CLANG_WARNING: [#def300]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5457:10: warning[deadcode.DeadStores]: Value stored to 'num' is never read
Error: CLANG_WARNING: [#def301]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5483:9: warning[deadcode.DeadStores]: Value stored to 'a' is never read
Error: CLANG_WARNING: [#def302]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/optget.c:5567:3: warning[deadcode.DeadStores]: Value stored to 'psp' is never read
Error: GCC_ANALYZER_WARNING (CWE-457): [#def303]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/procopen.c: scope_hint: In function 'procopen'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/procopen.c:466:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'procfd'
Error: CLANG_WARNING: [#def304]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/procopen.c:466:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
Error: GCC_ANALYZER_WARNING: [#def305]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/procopen.c:563:41: warning[-Wanalyzer-fd-use-without-check]: 'write' on possibly invalid file descriptor '-1'
Error: CLANG_WARNING: [#def306]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/procopen.c:599:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setuid' is not checked. If an error occurs in 'setuid', the following code may execute with unexpected privileges
Error: CLANG_WARNING: [#def307]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/procopen.c:600:5: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setgid' is not checked. If an error occurs in 'setgid', the following code may execute with unexpected privileges
Error: CLANG_WARNING: [#def308]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/recstr.c:178:5: warning[deadcode.DeadStores]: Value stored to 'v' is never read
Error: CLANG_WARNING: [#def309]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/stk.c:279:19: warning[core.NullDereference]: Access to field 'stkoverflow' results in a dereference of a null pointer (loaded from variable 'sp')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/stk.c: scope_hint: In function 'stkinstall'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/stk.c:279:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/translate.c: scope_hint: In function 'match'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/translate.c:249:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 't'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/translate.c:26: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/translate.c:292:1: note: in expansion of macro 'translate'
Error: CLANG_WARNING: [#def312]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/translate.c:423:26: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
Error: CLANG_WARNING: [#def313]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathcanon.c:70:3: warning[deadcode.DeadStores]: Value stored to 'size' is never read
Error: COMPILER_WARNING (CWE-562): [#def314]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathkey.c: scope_hint: In function 'pathkey_20100601'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathkey.c:283:41: warning[-Wreturn-local-addr]: function may return address of local variable
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathkey.c:58:25: note: declared here
Error: COMPILER_WARNING (CWE-562): [#def315]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathpath.c: scope_hint: In function 'pathpath_20100601'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathpath.c:124:1: warning[-Wreturn-local-addr]: function may return address of local variable
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathpath.c:52:25: note: declared here
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathpath.c:52:25: note: declared here
Error: COMPILER_WARNING (CWE-562): [#def316]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathprobe.c: scope_hint: In function 'pathprobe_20100601'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathprobe.c:322:1: warning[-Wreturn-local-addr]: function may return address of local variable
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathprobe.c:113:25: note: declared here
Error: CLANG_WARNING: [#def317]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathrepl.c:55:3: warning[deadcode.DeadStores]: Value stored to 'size' is never read
Error: CLANG_WARNING: [#def318]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathrepl.c:60:16: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'm')
Error: GCC_ANALYZER_WARNING (CWE-131): [#def319]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathtemp.c: scope_hint: In function 'pathtemp'
ksh-1.0.8-build/ksh-1.0.8/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.8-build/ksh-1.0.8/src/lib/libast/path/pathtemp.c:69: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathtemp.c:229:49: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/path/pathtemp.c:229:49: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c: scope_hint: In function 'synthesize.part.0'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c:336:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/include/ast.h:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/misc/univlib.h:41: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c:327:49: note: in expansion of macro 'getenv'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c:330:36: note: in expansion of macro 'newof'
Error: CPPCHECK_WARNING (CWE-476): [#def321]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c:747: warning[nullPointer]: Possible null pointer dereference: name
Error: CLANG_WARNING: [#def322]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/astconf.c:1292:8: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'name')
Error: CLANG_WARNING: [#def323]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lc.c:351:4: warning[deadcode.DeadStores]: Value stored to 't' is never read
Error: CLANG_WARNING: [#def324]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lc.c:561:6: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def325]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lc.c:774:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'al'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def326]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c: scope_hint: In function 'main'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:269:12: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(hdr, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:269:12: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(hdr, "w")'
Error: CPPCHECK_WARNING (CWE-404): [#def328]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:272: error[resourceLeak]: Resource leak: hf
Error: GCC_ANALYZER_WARNING (CWE-775): [#def329]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:306:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(hdr, "w")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def330]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:306:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(lib, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:306:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(hdr, "w")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/lcgen.c:306:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(lib, "w")'
Error: COMPILER_WARNING (CWE-823): [#def333]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/mc.c: scope_hint: In function 'mcindex'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/port/mc.c:625:41: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def334]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regcomp.c:1315:13: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
Error: CLANG_WARNING: [#def335]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regcomp.c:1364:5: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def336]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regcomp.c:1669:7: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CPPCHECK_WARNING (CWE-457): [#def337]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regcomp.c:1937: warning[uninitvar]: Uninitialized variable: *s
Error: CLANG_WARNING: [#def338]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regcomp.c:2304:13: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
Error: CPPCHECK_WARNING (CWE-476): [#def339]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:38: warning[nullPointer]: Possible null pointer dereference: match
Error: CLANG_WARNING: [#def340]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:38:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def341]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:38:12: warning[core.NullDereference]: Access to field 'rm_so' results in a dereference of a null pointer (loaded from variable 'match')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c: scope_hint: In function 'regexec_20120528.part.0'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:38:42: warning[-Wanalyzer-null-dereference]: dereference of NULL 'match'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def343]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:38:42: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*match.rm_so'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/reglib.h:56: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:26: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:71:31: note: in expansion of macro 'oldof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:71:31: note: in expansion of macro 'oldof'
Error: CPPCHECK_WARNING (CWE-476): [#def344]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regexec.c:41: warning[nullPointer]: Possible null pointer dereference: match
Error: COMPILER_WARNING (CWE-697): [#def345]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regnexec.c: scope_hint: In function 'parse'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regnexec.c:1063:29: warning[-Waddress]: the comparison will always evaluate as 'true' for the pointer operand in 'env->bestpos->vec + (sizetype)(n * (ssize_t)env->bestpos->siz)' must not be NULL
Error: CLANG_WARNING: [#def346]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regnexec.c:1275:10: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
Error: CLANG_WARNING: [#def347]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regnexec.c:2007:11: warning[core.UndefinedBinaryOperatorResult]: The right operand of '>' is a garbage value
Error: CLANG_WARNING: [#def348]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regrexec.c:168:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: GCC_ANALYZER_WARNING (CWE-457): [#def349]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regrexec.c: scope_hint: In function 'regrexec'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regrexec.c:168:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>.rm_so'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/reglib.h:56: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regrexec.c:26: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regrexec.c:163:31: note: in expansion of macro 'oldof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regrexec.c:163:31: note: in expansion of macro 'oldof'
Error: CLANG_WARNING: [#def350]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regstat.c:47:44: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from field 'rex')
Error: CLANG_WARNING: [#def351]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regsubcomp.c:184:6: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def352]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/regex/regsubcomp.c:342:70: warning[deadcode.DeadStores]: Although the value stored to 'nops' is used in the enclosing expression, the value is never actually read from 'nops'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def353]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/_sfputd.c: scope_hint: In function '_sfputd'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/_sfputd.c:76:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'c[255]'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/_sfputd.c:19: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/_sfputd.c:58:9: note: in expansion of macro 'SFOPEN'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/_sfputd.c:61:9: note: in expansion of macro 'SFLOCK'
Error: CPPCHECK_WARNING: [#def354]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfcvt.c: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1.18973149535723176502126385303097021e+4932L
Error: CLANG_WARNING: [#def355]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfcvt.c:142:7: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
Error: CLANG_WARNING: [#def356]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfcvt.c:292:7: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
Error: CLANG_WARNING: [#def357]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sffilbuf.c:97:7: warning[deadcode.DeadStores]: Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'
Error: CLANG_WARNING: [#def358]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfgetr.c:139:13: warning[core.NullDereference]: Array access (from variable 'us') results in a null pointer dereference
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def359]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:20: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c: scope_hint: In function '_sfpclose'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfhdr.h:476:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '*p.file'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:221:25: note: in expansion of macro 'CLOSE'
Error: CLANG_WARNING: [#def360]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:64:2: warning[deadcode.DeadStores]: Value stored to 'f' is never read
Error: CLANG_WARNING: [#def361]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfmode.c:350:3: warning[core.CallAndMessage]: Called function pointer is null (null dereference)
Error: CLANG_WARNING: [#def362]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfpkrd.c:171:6: warning[deadcode.DeadStores]: Value stored to 't' is never read
Error: CLANG_WARNING: [#def363]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfrd.c:198:6: warning[deadcode.DeadStores]: Value stored to 'r' is never read
Error: CLANG_WARNING: [#def364]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfreserve.c:96:11: warning[deadcode.DeadStores]: Although the value stored to 'now' is used in the enclosing expression, the value is never actually read from 'now'
Error: CLANG_WARNING: [#def365]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/strtod.c:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfstrtof.h:337:4: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CPPCHECK_WARNING: [#def366]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sftable.c: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1E309L
Error: CLANG_WARNING: [#def367]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sftable.c:57:35: warning[deadcode.DeadStores]: Value stored to 'argn' is never read
Error: CLANG_WARNING: [#def368]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sftable.c:57:42: warning[deadcode.DeadStores]: Although the value stored to 'maxp' is used in the enclosing expression, the value is never actually read from 'maxp'
Error: CLANG_WARNING: [#def369]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sftable.c:62:5: warning[deadcode.DeadStores]: Value stored to 'sp' is never read
Error: GCC_ANALYZER_WARNING (CWE-404): [#def370]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c: scope_hint: In function 'sfvprintf'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:154:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:213:25: note: in expansion of macro 'SFputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:119:43: note: in expansion of macro 'SFBUF'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:140:55: note: in expansion of macro 'SMputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:213:25: note: in expansion of macro 'SFputc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:1415:9: note: in expansion of macro 'SFEND'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:22: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfhdr.h:520:71: note: in expansion of macro '_SFOPEN'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:1427:9: note: in expansion of macro 'SFOPEN'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfhdr.h:516:50: note: in expansion of macro '_SFOPENRD'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfhdr.h:520:71: note: in expansion of macro '_SFOPEN'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:1427:9: note: in expansion of macro 'SFOPEN'
Error: CPPCHECK_WARNING (CWE-457): [#def371]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:164: error[uninitvar]: Uninitialized variable: f->data
Error: CLANG_WARNING: [#def372]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:364:5: warning[deadcode.DeadStores]: Value stored to 'fmt' is never read
Error: CPPCHECK_WARNING (CWE-758): [#def373]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:553: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def374]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:554: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def375]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:558: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def376]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:559: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def377]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:564: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CPPCHECK_WARNING (CWE-758): [#def378]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:568: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CLANG_WARNING: [#def379]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:626:7: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
Error: CLANG_WARNING: [#def380]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:677:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CPPCHECK_WARNING (CWE-758): [#def381]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:847: error[overlappingWriteUnion]: Overlapping read/write of union is undefined behavior
Error: CLANG_WARNING: [#def382]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:847:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def383]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:858:16: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def384]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:870:60: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*sp'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def385]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:874:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*sp'
Error: CLANG_WARNING: [#def386]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:921:23: warning[core.NullDereference]: Dereference of undefined pointer value
Error: CLANG_WARNING: [#def387]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:926:26: warning[core.NullDereference]: Dereference of undefined pointer value
Error: CLANG_WARNING: [#def388]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:935:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def389]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:1046:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def390]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvprintf.c:1154:10: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CPPCHECK_WARNING: [#def391]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1.18973149535723176502126385303097021e+4932L
Error: COMPILER_WARNING (CWE-823): [#def392]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c: scope_hint: In function '_sfsetclass'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:136:24: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def393]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:181:6: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: COMPILER_WARNING (CWE-823): [#def394]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c: scope_hint: In function '_sfgetwc'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:248:55: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def395]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:360:6: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def396]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:729:24: warning[core.NullDereference]: Dereference of null pointer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def397]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c: scope_hint: In function 'sfvscanf'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:729:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'value'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:307:73: note: in expansion of macro 'SFbuf'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:321:9: note: in expansion of macro 'SFinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:307:73: note: in expansion of macro 'SFbuf'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:321:9: note: in expansion of macro 'SFinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:20: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:632:24: note: in expansion of macro 'FP_SET'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:632:24: note: in expansion of macro 'FP_SET'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/sfio/sfvscanf.c:729:64: note: in expansion of macro 'SFlen'
Error: CPPCHECK_WARNING (CWE-401): [#def398]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/stdio/getdelim.c:62: error[memleakOnRealloc]: Common realloc mistake: 's' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def399]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/chresc.c:100: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CPPCHECK_WARNING (CWE-476): [#def400]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/chresc.c:102: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CLANG_WARNING: [#def401]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/strerror.c:100:17: warning[deadcode.DeadStores]: Although the value stored to 'z' is used in the enclosing expression, the value is never actually read from 'z'
Error: CPPCHECK_WARNING: [#def402]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/strntold.c: error[internalError]: Internal Error. MathLib::toDoubleNumber: conversion failed: 1.18973149535723176502126385303097021e+4932L
Error: CLANG_WARNING: [#def403]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/strperm.c:61:3: warning[deadcode.DeadStores]: Value stored to 'op' is never read
Error: CLANG_WARNING: [#def404]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/comp/strtol.c:29: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/strtoi.h:332:5: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CLANG_WARNING: [#def405]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/strtoi.h:400:3: warning[deadcode.DeadStores]: Value stored to 'c' is never read
Error: CPPCHECK_WARNING (CWE-664): [#def406]
ksh-1.0.8-build/ksh-1.0.8/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): [#def407]
ksh-1.0.8-build/ksh-1.0.8/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): [#def408]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/tokscan.c: scope_hint: In function 'tokscan'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/string/tokscan.c:244:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
Error: CLANG_WARNING: [#def409]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:101:15: warning[core.NullDereference]: Array access (from variable 'environ') results in a null pointer dereference
Error: CLANG_WARNING: [#def410]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:101:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: GCC_ANALYZER_WARNING (CWE-457): [#def411]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c: scope_hint: In function '_tm_localtime'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:101:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'e'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:146:14: note: in expansion of macro 'tmlocaltime'
Error: CLANG_WARNING: [#def412]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:239:12: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def413]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c: scope_hint: In function 'tmlocal'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:239:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'e'
Error: CPPCHECK_WARNING (CWE-457): [#def414]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tminit.c:342: error[uninitvar]: Uninitialized variable: buf
Error: COMPILER_WARNING (CWE-823): [#def415]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c: scope_hint: In function 'tmxdate'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:255:40: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def416]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c: scope_hint: In function 'tmxdate'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:726:65: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'k'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:32: included_from: Included from here.
Error: CLANG_WARNING: [#def417]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:770:5: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def418]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:779:6: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: GCC_ANALYZER_WARNING (CWE-457): [#def419]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:812:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'k'
Error: COMPILER_WARNING (CWE-823): [#def420]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:818:50: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def421]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:887:10: warning[deadcode.DeadStores]: Value stored to 'i' is never read
Error: CLANG_WARNING: [#def422]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:905:10: warning[deadcode.DeadStores]: Value stored to 'i' is never read
Error: GCC_ANALYZER_WARNING (CWE-457): [#def423]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:963:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'k'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:773:37: note: in expansion of macro 'dig2'
Error: COMPILER_WARNING (CWE-823): [#def424]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:977:58: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def425]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1089:39: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def426]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1224:7: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: COMPILER_WARNING (CWE-823): [#def427]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1265:61: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: CLANG_WARNING: [#def428]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1275:8: warning[deadcode.DeadStores]: Value stored to 'f' is never read
Error: CLANG_WARNING: [#def429]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1277:8: warning[deadcode.DeadStores]: Value stored to 'f' is never read
Error: CLANG_WARNING: [#def430]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1279:8: warning[deadcode.DeadStores]: Value stored to 'f' is never read
Error: CLANG_WARNING: [#def431]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1281:8: warning[deadcode.DeadStores]: Value stored to 'f' is never read
Error: COMPILER_WARNING (CWE-823): [#def432]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1314:69: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def433]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1329:69: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: COMPILER_WARNING (CWE-823): [#def434]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1539:69: warning[-Wchar-subscripts]: array subscript has type 'char'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def435]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1674:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'w'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/src/lib/libast/tmx.h:10: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1203:73: note: in expansion of macro 'tm_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1205:37: note: in expansion of macro 'tm_data'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxdate.c:1269:57: note: in expansion of macro 'tm_info'
Error: CLANG_WARNING: [#def436]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tmxmake.c:103:2: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def437]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tvtouch.c:194:16: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def438]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/tm/tvtouch.c:204:16: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
Error: CLANG_WARNING: [#def439]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/malloc.c:934:75: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
Error: CPPCHECK_WARNING (CWE-672): [#def440]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmbest.c:1183: error[deallocret]: Returning/dereferencing 'caddr' after it is deallocated / released
Error: CLANG_WARNING: [#def441]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmbest.c:1183:3: warning[unix.Malloc]: Use of memory after it is freed
Error: COMPILER_WARNING: [#def442]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmbest.c: scope_hint: In function 'mallocmem'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmbest.c:1183:24: warning[-Wuse-after-free]: pointer 'caddr_7(D)' used after 'free'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmbest.c:1182:17: note: call to 'free' here
Error: CLANG_WARNING: [#def443]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c:337:11: warning[core.NullDereference]: Access to field 'baddr' results in a dereference of a null pointer (loaded from variable 'seg')
Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c: scope_hint: In function 'lastalign'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c:337:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'seg'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c:21: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c:316:9: note: in expansion of macro 'SETLOCK'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmhdr.h:152:42: note: in definition of macro 'KPVALLOC'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c:36:9: note: in expansion of macro 'SETLOCK'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmhdr.h:152:42: note: in definition of macro 'KPVALLOC'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmlast.c:332:26: note: in expansion of macro 'VLONG'
Error: CLANG_WARNING: [#def445]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmopen.c:74:2: warning[deadcode.DeadStores]: Value stored to 'size' is never read
Error: CLANG_WARNING: [#def446]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmprivate.c:38:13: warning[deadcode.DeadStores]: Value stored to 'addr' during its initialization is never read
Error: CPPCHECK_WARNING (CWE-476): [#def447]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmprofile.c:227: error[ctunullpointer]: Null pointer dereference: pf
Error: CPPCHECK_WARNING (CWE-476): [#def448]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmprofile.c:227: warning[nullPointer]: Possible null pointer dereference: pf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def449]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmprofile.c: scope_hint: In function 'pfsort'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmprofile.c:227:15: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pf'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def450]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libast/vmalloc/vmprofile.c:232:15: warning[-Wanalyzer-deref-before-check]: check of 'pf' for NULL after already dereferencing it
Error: CLANG_WARNING: [#def451]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cat.c:143:9: warning[deadcode.DeadStores]: Although the value stored to 'buf' is used in the enclosing expression, the value is never actually read from 'buf'
Error: CLANG_WARNING: [#def452]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cat.c:153:17: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
Error: GCC_ANALYZER_WARNING (CWE-457): [#def453]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c: scope_hint: In function 'b_chgrp'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:472:62: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'uid'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:99: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
/usr/include/bits/stat.h:25: included_from: Included from here.
/usr/include/fcntl.h:78: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_sys.h:13: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast_std.h:66: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:32: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:27: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def454]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:472:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'gid'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def455]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:481:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'uid'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def456]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:481:78: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'gid'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/chgrp.c:233:9: note: in expansion of macro 'cmdinit'
Error: CPPCHECK_WARNING (CWE-476): [#def457]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmp.c:106: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CPPCHECK_WARNING (CWE-476): [#def458]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmp.c:112: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CPPCHECK_WARNING (CWE-476): [#def459]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmp.c:122: error[nullPointer]: Null pointer dereference: 1==(1)?(unsigned char*)0:_ccmap(1,1)
Error: CLANG_WARNING: [#def460]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cp.c:548:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
Error: CLANG_WARNING: [#def461]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cp.c:977:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def462]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cp.c:1015:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'state'
Error: CLANG_WARNING: [#def463]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cut.c:194:9: warning[deadcode.DeadStores]: Value stored to 'n' is never read
Error: CLANG_WARNING: [#def464]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cut.c:266:13: warning[deadcode.DeadStores]: Value stored to 'lp' during its initialization is never read
Error: GCC_ANALYZER_WARNING (CWE-457): [#def465]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cut.c: scope_hint: In function 'cutfields'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cut.c:563:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '(_Bool)nodelim'
Error: CLANG_WARNING: [#def466]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/expr.c:339:11: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: CLANG_WARNING: [#def467]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/fmt.c:144:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
Error: CLANG_WARNING: [#def468]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/fmt.c:208:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: CLANG_WARNING: [#def469]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/fold.c:216:2: warning[deadcode.DeadStores]: Value stored to 'argc' is never read
Error: CLANG_WARNING: [#def470]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:290:17: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def471]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c: scope_hint: In function 'getids'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:292:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'group'
Error: CLANG_WARNING: [#def472]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:292:32: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value
Error: CLANG_WARNING: [#def473]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:295:18: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def474]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:295:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'group'
Error: CLANG_WARNING: [#def475]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:305:3: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def476]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:305:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'user'
Error: CLANG_WARNING: [#def477]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:306:3: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def478]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:306:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'gname'
Error: CLANG_WARNING: [#def479]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:368:8: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def480]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:368:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'user'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def481]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:372:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'gname'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def482]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/id.c:373:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'group'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def483]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c: scope_hint: In function 'getolist'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:251:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'outptr'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:90: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:27: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:214:27: note: in expansion of macro 'mbmax'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/error.h:31: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:252:20: warning[-Wanalyzer-malloc-leak]: leak of 'outptr'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:214:27: note: in expansion of macro 'mbmax'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:255:27: note: in definition of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:246:39: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:255:64: note: in definition of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:246:39: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def485]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:282:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'outptr'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:214:27: note: in expansion of macro 'mbmax'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def486]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:284:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'outptr'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:140:45: note: in expansion of macro 'CMD_CONTEXT'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:822:9: note: in expansion of macro 'cmdinit'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:214:27: note: in expansion of macro 'mbmax'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:190:30: note: in expansion of macro 'mbwide'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:197:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:198:44: note: in expansion of macro 'newof'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:873:29: note: in expansion of macro 'opt_info'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/join.c:221:32: note: in expansion of macro 'newof'
Error: CLANG_WARNING: [#def487]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/paste.c:244:18: warning[unix.Malloc]: Use of memory allocated with size zero
Error: CLANG_WARNING: [#def488]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:82:11: warning[core.NullDereference]: Dereference of null pointer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def489]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c: scope_hint: In function 'rev_char'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:82:39: warning[-Wanalyzer-null-dereference]: dereference of NULL 'xp'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:36: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/cmd.h:27: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:51: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/sfio.h:368:51: note: in expansion of macro '__sf_value'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:70:38: note: in expansion of macro 'sfvalue'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:214:27: note: in expansion of macro 'mbmax'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:218:27: note: in expansion of macro 'mbwide'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:217:25: note: in expansion of macro 'mbnchar'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:82:41: note: in expansion of macro 'mbchar'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:217:25: note: in expansion of macro 'mbnchar'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:82:41: note: in expansion of macro 'mbchar'
ksh-1.0.8-build/ksh-1.0.8/arch/linux.i386-64/include/ast/ast.h:217:25: note: in expansion of macro 'mbnchar'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/rev.c:82:41: note: in expansion of macro 'mbchar'
Error: CLANG_WARNING: [#def490]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/uname.c:352:3: warning[deadcode.DeadStores]: Value stored to 's' is never read
Error: CLANG_WARNING: [#def491]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libcmd/uniq.c:146:38: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def492]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libdll/dllscan.c: scope_hint: In function 'dllinfo'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libdll/dllscan.c:146:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'vn'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sumlib.c:152: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c: scope_hint: In function 'crc_open'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:135:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum.h:28: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sumlib.c:33: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: CLANG_WARNING: [#def494]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sumlib.c:152: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:148:11: warning[deadcode.DeadStores]: Although the value stored to 't' is used in the enclosing expression, the value is never actually read from 't'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def495]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:157:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def496]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:159:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:161:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:164:38: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def499]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:171:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-crc.c:127:19: note: in expansion of macro 'newof'
Error: CLANG_WARNING: [#def500]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sumlib.c:153: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:64:11: warning[deadcode.DeadStores]: Although the value stored to 't' is used in the enclosing expression, the value is never actually read from 't'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sumlib.c:153: included_from: Included from here.
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c: scope_hint: In function 'prng_open'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:71:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def502]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:73:70: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def503]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:75:71: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def504]
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:79:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sum'
ksh-1.0.8-build/ksh-1.0.8/src/lib/libsum/sum-prng.c:58:19: note: in expansion of macro 'newof'
Scan Properties
| analyzer-version-clang | 18.1.7 |
| analyzer-version-cppcheck | 2.14.2 |
| analyzer-version-gcc | 14.1.1 |
| analyzer-version-gcc-analyzer | 14.1.1 |
| analyzer-version-shellcheck | 0.10.0 |
| enabled-plugins | clang, cppcheck, gcc, shellcheck |
| exit-code | 0 |
| host | ip-172-16-1-72.us-west-2.compute.internal |
| mock-config | fedora-41-x86_64 |
| project-name | ksh-1.0.8-4.fc41 |
| store-results-to | /tmp/tmptsty5hmy/ksh-1.0.8-4.fc41.tar.xz |
| time-created | 2024-07-09 11:19:18 |
| time-finished | 2024-07-09 11:34:10 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,shellcheck,clang' '-o' '/tmp/tmptsty5hmy/ksh-1.0.8-4.fc41.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmptsty5hmy/ksh-1.0.8-4.fc41.src.rpm' |
| tool-version | csmock-3.6.0-1.el9 |