cppcheck analysis of asterisk_1.6.2.2-1.dsc
- ./apps/app_alarmreceiver.c:411 [possible error] - Resource leak: fd
- ./apps/app_chanspy.c:1112 [error] - Resource leak: fd
- ./apps/app_chanspy.c:1208 [error] - Resource leak: fd
- ./apps/app_festival.c:535 [possible error] - Resource leak: fdesc
- ./apps/app_minivm.c:845 [error] - Resource leak: fi
- ./apps/app_minivm.c:1083 [error] - Resource leak: tmpfd
- ./apps/app_queue.c:6093 [possible error] - Array index out of bounds
- ./apps/app_queue.c:6130 [possible error] - Array index out of bounds
- ./apps/app_queue.c:6200 [possible error] - Array index out of bounds
- ./apps/app_rpt.c:13149 [possible error] - Resource leak: nullfd
- ./apps/app_rpt.c:6695 [error] - Dangerous usage of 'tmp' (strncpy doesn't always 0-terminate it)
- ./apps/app_rpt.c:10243 [error] - Dangerous usage of 'tmp' (strncpy doesn't always 0-terminate it)
- ./apps/app_rpt.c:1960 [error] - Memory leak: str
- ./apps/app_rpt.c:1960 [error] - Memory leak: astr
- ./apps/app_voicemail.c:10233 [error] - Buffer access out-of-bounds: mwi_sub.mailbox
- ./apps/app_voicemail.c:3704 [error] - Deallocating a deallocated pointer: ifd
- ./apps/app_voicemail.c:3705 [error] - Deallocating a deallocated pointer: ofd
- ./apps/app_voicemail.c:4422 [possible error] - Resource leak: tmpfd
- ./apps/app_voicemail.c:3116 [possible error] - Resource leak: fd
- ./channels/chan_dahdi.c:3946 [error] - Possible null pointer dereference: pl - otherwise it is redundant to check if pl is null at line 3948
- ./channels/chan_dahdi.c:17015 [error] - Resource leak: ctlfd
- ./channels/chan_local.c:582 [error] - Possible null pointer dereference: ast - otherwise it is redundant to check if ast is null at line 606
- ./channels/chan_skinny.c:4450 [error] - Possible null pointer dereference: sub - otherwise it is redundant to check if sub is null at line 4456
- ./channels/chan_unistim.c:4224 [error] - Possible null pointer dereference: pte - otherwise it is redundant to check if pte is null at line 4234
- ./main/ast_expr2.c:2395 [error] - Memory leak: vp
- ./main/ast_expr2.c:3517 [error] - Memory leak: vs
- ./main/asterisk.c:3727 [possible error] - Resource leak: fd
- ./main/asterisk.c:1055 [error] - Uninitialized variable: res
- ./main/db1-ast/btree/bt_split.c:509 [possible error] - Array 'linp[1]' index 1 out of bounds
- ./main/db1-ast/btree/bt_split.c:563 [possible error] - Array 'linp[1]' index 1 out of bounds
- ./main/db1-ast/btree/bt_split.c:579 [possible error] - Array 'linp[1]' index 1 out of bounds
- ./main/db1-ast/hash/ndbm.c:83 [error] - Dangerous usage of 'path' (strncpy doesn't always 0-terminate it)
- ./main/editline/readline.c:1272 [error] - Memory leak: filename
- ./main/editline/tokenizer.c:117 [error] - Memory leak: tok
- ./main/editline/tokenizer.c:117 [error] - Memory leak: tok.ifs
- ./main/http.c:237 [error] - Resource leak: fd
- ./main/term.c:166 [possible error] - Resource leak: termfd
- ./menuselect/menuselect.c:193 [error] - ### Internal error in Cppcheck. Please report it.
- ./menuselect/menuselect_curses.c:881 [error] - ### Internal error in Cppcheck. Please report it.
- ./res/res_musiconhold.c:556 [possible error] - Resource leak: dir
- ./res/res_musiconhold.c:986 [error] - Resource leak: files_DIR
- ./res/res_phoneprov.c:325 [error] - Resource leak: f
- ./utils/extconf.c:6067 [error] - ### Internal error in Cppcheck. Please report it.
- ./utils/smsq.c:661 [possible error] - Resource leak: f
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:46:11 +0000, based on results by cppcheck 1.41-modif