Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at dcc-server.c:180

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2211.2217
Procedure: dcc_server_listen
Trace: View
Modified: Wed Sep 2 11:52:35 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-server.c
   Enter dcc_server_listen
 163 static void dcc_server_listen(SERVER_DCC_REC *dcc) 
 164 {
 165         SERVER_DCC_REC *newdcc;
 166         IPADDR ip;
 167         GIOChannel *handle;
 168         int port;
 169  
 170         g_return_if_fail(IS_DCC_SERVER(dcc));
 171  
 172         /* accept connection */ 
 173         handle = net_accept(dcc->handle, &ip, &port);
 174         if (handle == NULL)
 175                 return;
 176  
 177         /* Create a new DCC SERVER to handle this connection */ 
true178         newdcc = dcc_server_clone(dcc);
 179  
newdcc <= 4095180         newdcc->starttime = time(NULL);     /* Null Pointer Dereference */
Preconditions
&$unknown_560249 != 0
((char*)$param_1)[144] != 0
Postconditions
_g_boolean_var_' = 1
dcc' = $param_1
handle' = &$unknown_560249
ip.family' = 10
newdcc' = 0




Change Warning 2211.2217 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: