Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at dcc-get.c:343

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 614.614
Procedure: dcc_get_passive
Trace: View
Modified: Wed Sep 2 11:35:36 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-get.c
   Enter dcc_get_passive
 333         int port;
 334         char host[MAX_IP_LEN];
 335  
 336         handle = dcc_listen(net_sendbuffer_handle(dcc->server->handle),   /* Null Pointer Dereference (ID: 2206.2212) */
 337                             &own_ip, &port);
 338         if (handle == NULL)
 339                 cmd_return_error(CMDERR_ERRNO);
 340  
 341         dcc->handle = handle;
 342         dcc->tagconn = g_input_add(dcc->handle, G_INPUT_READ,
Wrong Number of Parameters343                                    (GInputFunction) dcc_get_listen, dcc);     /* Dangerous Function Cast */
 344  
 345         /* Let's send the reply to the other client! */ 
 346         dcc_ip2str(&own_ip, host);
 347         irc_send_cmdv(dcc->server,
 348                       "PRIVMSG %s :\001DCC SEND %s %s %d %"PRIuUOFF_T" %d\001",
 349                       dcc->nick, dcc->arg, host, port, dcc->size, dcc->pasv_id);
 350 
 351  
 352 #define get_params_match(params, pos) \
 353         ((is_numeric(params[pos], '\0') || is_ipv6_address(params[pos])) && \




Change Warning 614.614 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: