Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at dcc-server.c:180

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7276.28362
Procedure: dcc_server_listen
Trace: view
Modified: Thu Nov 26 11:09:04 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
   /kat0/fletcher/SATE/2010/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_345797 != 0
dcc->handle != 0
Postconditions
_g_boolean_var_' = 1
handle' = &$unknown_345797
ip.family' = 10
newdcc' = 0




Change Warning 7276.28362 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: