Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at dcc-resume.c:170

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2208.2214
Procedure: ctcp_msg_dcc_accept
Trace: View
Modified: Wed Sep 2 11:52:32 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/irc/dcc/dcc-resume.c
   Enter ctcp_msg_dcc_accept
 161 static void ctcp_msg_dcc_accept(IRC_SERVER_REC *server, const char *data,
 162                                 const char *nick, const char *addr,
 163                                 const char *target, DCC_REC *chat) 
 164 {
 165         FILE_DCC_REC *dcc;
 166         uoff_t size;
 167         int pasv_id;
 168  
 169         if (!dcc_ctcp_resume_parse(DCC_GET_TYPE, data, nick, &dcc, &size, &pasv_id) ||
true170             (dcc != NULL && DCC_GET(dcc)->get_type != DCC_GET_RESUME)) {     /* Null Pointer Dereference */
Preconditions
&$unknown_555839 != 0
dcc_conns >= 0
Postconditions
addr' = $param_4
chat' = $param_6
data' = $param_2
dcc' = &$unknown_555840
next_uniq_id' = next_uniq_id + 1
nick' = $param_3
server' = $param_1
target' = $param_5




Change Warning 2208.2214 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: