Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at channel-rejoin.c:266

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 947.26393
Procedure: channel_rejoin_init
Trace: view
Modified: Thu Nov 26 10:58:26 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/core/channel-rejoin.c
   Enter channel_rejoin_init
 256  
 257         while (server->rejoin_channels != NULL)
 258                 rejoin_destroy(server, server->rejoin_channels->data);
 259 }
 260  
 261 void channel_rejoin_init(void) 
 262 {
 263         settings_add_bool("servers", "channels_rejoin_unavailable", TRUE);
 264  
 265         rejoin_tag = g_timeout_add(REJOIN_TIMEOUT,
Wrong Number of Parameters266                                    (GSourceFunc) sig_rejoin, NULL);     /* Dangerous Function Cast */
 267  
 268         command_bind_irc("rmrejoins", NULL, (SIGNAL_FUNC) cmd_rmrejoins);   /* Dangerous Function Cast (ID: 946.26392) */
 269         signal_add_first("event 407", (SIGNAL_FUNC) event_duplicate_channel);   /* Dangerous Function Cast (ID: 945.26391) */
 270         signal_add_first("event 437", (SIGNAL_FUNC) event_target_unavailable);   /* Dangerous Function Cast (ID: 944.26390) */
 271         signal_add_first("channel joined", (SIGNAL_FUNC) sig_remove_rejoin);   /* Dangerous Function Cast (ID: 950.26396) */
 272         signal_add_first("channel destroyed", (SIGNAL_FUNC) sig_remove_rejoin);   /* Dangerous Function Cast (ID: 949.26395) */
 273         signal_add("server disconnected", (SIGNAL_FUNC) sig_disconnected);   /* Dangerous Function Cast (ID: 948.26394) */
 274 } 
 275  
 276 void channel_rejoin_deinit(void)




Change Warning 947.26393 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: