cppcheck analysis of asterisk_1.6.2.9-2+squeeze1.dsc
- ./apps/app_fax.c:328 [error] - Uninitialized variable: buffer
- ./apps/app_osplookup.c:832 [style] - Redundant assignment of "res" in switch
- ./apps/app_rpt.c:8767 [style] - Redundant assignment of "rv" in switch
- ./apps/app_rpt.c:13149 [error] - Resource leak: nullfd
- ./apps/app_rpt.c:10243 [error] - Dangerous usage of 'tmp' (strncpy doesn't always 0-terminate it)
- ./apps/app_rpt.c:12188 [error] - Uninitialized variable: value
- ./apps/app_rpt.c:1962 [error] - Memory leak: str
- ./apps/app_voicemail.c:4529 [error] - Resource leak: tmpfd
- ./channels/chan_dahdi.c:3949 [error] - Possible null pointer dereference: pl - otherwise it is redundant to check if pl is null at line 3951
- ./channels/chan_dahdi.c:17122 [error] - Resource leak: ctlfd
- ./channels/chan_iax2.c:5582 [error] - Possible null pointer dereference: f - otherwise it is redundant to check if f is null at line 5592
- ./channels/chan_sip.c:13061 [error] - Possible null pointer dereference: peer - otherwise it is redundant to check if peer is null at line 13063
- ./channels/chan_skinny.c:4454 [error] - Possible null pointer dereference: sub - otherwise it is redundant to check if sub is null at line 4460
- ./channels/chan_unistim.c:4916 [error] - Buffer access out-of-bounds: line
- ./channels/chan_unistim.c:3065 [error] - Resource leak: f
- ./channels/chan_unistim.c:3231 [error] - Resource leak: f
- ./channels/misdn/isdn_lib.c:1923 [error] - Possible null pointer dereference: hold_bc - otherwise it is redundant to check if hold_bc is null at line 1925
- ./main/db1-ast/hash/ndbm.c:83 [error] - Dangerous usage of 'path' (strncpy doesn't always 0-terminate it)
- ./main/editline/history.c:626 [error] - Common realloc mistake: "ptr" nulled but not freed upon failure
- ./main/editline/history.c:664 [error] - Common realloc mistake: "ptr" nulled but not freed upon failure
- ./main/editline/readline.c:354 [error] - Common realloc mistake: "result" nulled but not freed upon failure
- ./main/editline/readline.c:365 [error] - Common realloc mistake: "result" nulled but not freed upon failure
- ./main/editline/readline.c:800 [error] - Common realloc mistake: "result" nulled but not freed upon failure
- ./main/editline/readline.c:1225 [error] - Common realloc mistake: "dirname" nulled but not freed upon failure
- ./main/editline/readline.c:1337 [error] - Common realloc mistake: "match_list" nulled but not freed upon failure
- ./main/editline/readline.c:1364 [error] - Common realloc mistake: "match_list" nulled but not freed upon failure
- ./main/editline/readline.c:1272 [error] - Memory leak: filename
- ./main/editline/refresh.c:1038 [error] - Array index -1 is out of bounds
- ./main/editline/tokenizer.c:117 [error] - Memory leak: tok.ifs
- ./main/file.c:1031 [error] - Resource leak: bfile
- ./main/http.c:237 [error] - Resource leak: fd
- ./res/ael/pval.c:5767 [error] - Possible null pointer dereference: next_statement
- ./res/ael/pval.c:5788 [error] - Possible null pointer dereference: next_obj
- ./res/ael/pval.c:5323 [error] - Memory leak: hr
- ./res/ael/pval.c:5323 [error] - Memory leak: dom
- ./res/ael/pval.c:5323 [error] - Memory leak: dow
- ./res/ael/pval.c:5323 [error] - Memory leak: mon
- ./res/ael/pval.c:5323 [error] - Memory leak: s
- ./res/ael/pval.c:5575 [error] - Memory leak: hr
- ./res/ael/pval.c:5575 [error] - Memory leak: dow
- ./res/ael/pval.c:5575 [error] - Memory leak: dom
- ./res/ael/pval.c:5575 [error] - Memory leak: mon
- ./res/ael/pval.c:775 [error] - Uninitialized variable: errmess
- ./res/res_config_ldap.c:1055 [error] - Possible null pointer dereference: category - otherwise it is redundant to check if category is null at line 1060
- ./res/res_config_ldap.c:698 [error] - Possible null pointer dereference: new_name
- ./res/res_musiconhold.c:1000 [error] - Resource leak: files_DIR
- ./res/res_phoneprov.c:325 [error] - Resource leak: f
- ./utils/extconf.c:3227 [error] - Buffer access out-of-bounds: i.minmask
- ./utils/extconf.c:369 [error] - Null pointer dereference
- ./utils/extconf.c:426 [error] - Null pointer dereference
- ./utils/extconf.c:445 [error] - Null pointer dereference
- ./utils/extconf.c:494 [error] - Null pointer dereference
- ./utils/extconf.c:513 [error] - Null pointer dereference
- ./utils/extconf.c:549 [error] - Null pointer dereference
- ./utils/extconf.c:568 [error] - Null pointer dereference
- ./utils/frame.c:893 [error] - Memory leak: filename
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 28 Mar 2011 06:58:02 +0000, based on results by cppcheck 1.46