Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at flood.c:313

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 658.658
Procedure: read_settings
Trace: View
Modified: Wed Sep 2 11:35:56 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/flood/flood.c
   Enter read_settings
 303  
 304                         signal_add("event privmsg", (SIGNAL_FUNC) flood_privmsg);   /* Dangerous Function Cast (ID: 654.654) */
 305                         signal_add("event notice", (SIGNAL_FUNC) flood_notice);   /* Dangerous Function Cast (ID: 655.655) */
 306                         signal_add("ctcp msg", (SIGNAL_FUNC) flood_ctcp);   /* Dangerous Function Cast (ID: 656.656) */
 307                 }
 308         } else if (flood_tag != -1) {
 309                 g_source_remove(flood_tag);
 310                 flood_tag = -1;
 311  
 312                 signal_remove("event privmsg", (SIGNAL_FUNC) flood_privmsg);   /* Dangerous Function Cast (ID: 657.657) */
Wrong Number of Parameters313                 signal_remove("event notice", (SIGNAL_FUNC) flood_notice);     /* Dangerous Function Cast */
 314                 signal_remove("ctcp msg", (SIGNAL_FUNC) flood_ctcp);   /* Dangerous Function Cast (ID: 653.653) */
 315         }
 316 
 317  
 318 void irc_flood_init(void)
 319 {
 320         settings_add_int("flood", "flood_timecheck", 8);
 321         settings_add_int("flood", "flood_max_msgs", 4);
 322  
 323         flood_tag = -1;




Change Warning 658.658 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: