cppcheck analysis of ksh_93s+20080202-1.dsc
- ./src/cmd/INIT/proto.c:1761 [error] - syntax error
- ./src/cmd/INIT/ratz.c:3722 [error] - Memory leak: s.path
- ./src/cmd/INIT/ratz.c:4913 [error] - Null pointer dereference
- ./src/cmd/ksh93/data/signals.c:53 [error] - Invalid number of character (() when these macros are defined: 'SIGAPOLLO'.
- ./src/cmd/ksh93/edit/emacs.c:716 [error] - Dangerous usage of 'string' (strncpy doesn't always 0-terminate it)
- ./src/cmd/ksh93/sh/name.c:98 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/cmd/ksh93/sh/nvdisc.c:1268 [error] - Memory leak: val
- ./src/cmd/ksh93/sh/path.c:803 [error] - Resource leak: fd
- ./src/cmd/ksh93/sh/suid_exec.c:397 [error] - Resource leak: n
- ./src/cmd/ksh93/sh/xec.c:2614 [error] - Array 'arglist[2]' index 2 out of bounds
- ./src/lib/libast/comp/omitted.c:155 [error] - Array 'buf[2]' index 60 out of bounds
- ./src/lib/libast/comp/omitted.c:155 [error] - Array 'buf[2]' index 61 out of bounds
- ./src/lib/libast/comp/omitted.c:918 [error] - Uninitialized variable: oerrno
- ./src/lib/libast/comp/omitted.c:230 [error] - Uninitialized variable: oerrno
- ./src/lib/libast/comp/wordexp.c:115 [error] - Unusual pointer arithmetic
- ./src/lib/libast/disc/sfdcmore.c:368 [error] - Memory leak: more
- ./src/lib/libast/disc/sfdcprefix.c:152 [error] - Memory leak: pfx
- ./src/lib/libast/port/astconf.c:630 [error] - Invalid number of character (() when these macros are defined: 'ATT_UNIV;UNIV_MAX'.
- ./src/lib/libast/port/astconf.c:630 [error] - Invalid number of character (() when these macros are defined: 'UNIV_MAX'.
- ./src/lib/libast/port/lcgen.c:308 [error] - Resource leak: hf
- ./src/lib/libast/sfio/_sfopen.c:96 [error] - Resource leak: fd
- ./src/lib/libast/stdio/vfwprintf.c:64 [error] - Memory leak: m
- ./src/lib/libast/tm/tmxdate.c:354 [error] - Buffer access out-of-bounds: mon
- ./src/lib/libast/uwin/crypt.c:855 [error] - Returning pointer to local array variable
- ./src/lib/libast/vmalloc/vmdebug.c:391 [error] - Uninitialized variable: line
- ./src/lib/libast/vmalloc/vmdebug.c:391 [error] - Uninitialized variable: func
- ./src/lib/libast/vmalloc/vmdebug.c:448 [error] - Uninitialized variable: line
- ./src/lib/libast/vmalloc/vmdebug.c:448 [error] - Uninitialized variable: func
- ./src/lib/libast/vmalloc/vmdebug.c:713 [error] - Uninitialized variable: line
- ./src/lib/libast/vmalloc/vmdebug.c:713 [error] - Uninitialized variable: func
- ./src/lib/libast/vmalloc/vmprofile.c:478 [error] - Uninitialized variable: line
- ./src/lib/libast/vmalloc/vmprofile.c:478 [error] - Uninitialized variable: func
- ./src/lib/libast/vmalloc/vmprofile.c:521 [error] - Uninitialized variable: line
- ./src/lib/libast/vmalloc/vmprofile.c:521 [error] - Uninitialized variable: func
- ./src/lib/libast/vmalloc/vmprofile.c:706 [error] - Uninitialized variable: line
- ./src/lib/libast/vmalloc/vmprofile.c:706 [error] - Uninitialized variable: func
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Tue, 21 Dec 2010 22:58:06 +0000, based on results by cppcheck 1.46