Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at net-nonblock.c:291

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 791.26237
Procedure: net_connect_nonblock
Trace: view
Modified: Thu Nov 26 10:57:44 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/core/net-nonblock.c
   Enter net_connect_nonblock
 281                 memcpy(rec->my_ip, my_ip, sizeof(IPADDR));
 282         }
 283         rec->func = func;
 284         rec->data = data;
 285         rec->pipes[0] = g_io_channel_unix_new(fd[0]);
 286         rec->pipes[1] = g_io_channel_unix_new(fd[1]);
 287  
 288         /* start nonblocking host name lookup */ 
 289         net_gethostbyname_nonblock(server, rec->pipes[1], 0);
 290         rec->tag = g_input_add(rec->pipes[0], G_INPUT_READ,
Wrong Number of Parameters291                                (GInputFunction) simple_readpipe, rec);     /* Dangerous Function Cast */
 292  
 293         return TRUE;
 294 } 




Change Warning 791.26237 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: