cppcheck analysis of zsh-beta_4.3.11-dev-1+20110321-1.dsc
- ./Src/Modules/system.c:445 [error] - Resource leak: flock_fd
- ./Src/Modules/zftp.c:2041 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./Src/Modules/zpty.c:558 [error] - Uninitialized variable: pollret
- ./Src/Zle/compcore.c:2271 [error] - Possible null pointer dereference: globflag
- ./Src/Zle/zle_hist.c:959 [error] - Common realloc mistake: "isrch_spots" nulled but not freed upon failure
- ./Src/Zle/zle_keymap.c:1488 [error] - Common realloc mistake: "keybuf" nulled but not freed upon failure
- ./Src/Zle/zle_main.c:382 [error] - Common realloc mistake: "kungetbuf" nulled but not freed upon failure
- ./Src/Zle/zle_utils.c:1506 [error] - Common realloc mistake: "lastline" nulled but not freed upon failure
- ./Src/builtin.c:3048 [error] - Null pointer dereference
- ./Src/hist.c:2355 [error] - Common realloc mistake: "words" nulled but not freed upon failure
- ./Src/hist.c:2428 [error] - Common realloc mistake: "words" nulled but not freed upon failure
- ./Src/lex.c:700 [error] - Common realloc mistake: "tbuf" nulled but not freed upon failure
- ./Src/loop.c:53 [error] - Array index -1 is out of bounds
- ./Src/loop.c:202 [error] - Array index -1 is out of bounds
- ./Src/loop.c:369 [error] - Array index -1 is out of bounds
- ./Src/loop.c:438 [error] - Array index -1 is out of bounds
- ./Src/loop.c:482 [error] - Array index -1 is out of bounds
- ./Src/loop.c:529 [error] - Array index -1 is out of bounds
- ./Src/text.c:70 [error] - Common realloc mistake: "tpending" nulled but not freed upon failure
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Fri, 08 Apr 2011 06:58:14 +0000, based on results by cppcheck 1.46