Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at flood.c:306

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1360.26804
Procedure: read_settings
Trace: view
Modified: Thu Nov 26 11:00:06 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/flood/flood.c
   Enter read_settings
 296 {
 297         flood_timecheck = settings_get_int("flood_timecheck");
 298         flood_max_msgs = settings_get_int("flood_max_msgs");
 299  
 300         if (flood_timecheck > 0 && flood_max_msgs > 0) {
 301                 if (flood_tag == -1) {
 302                         flood_tag = g_timeout_add(5000, (GSourceFunc) flood_timeout, NULL);   /* Dangerous Function Cast (ID: 1363.26806) */
 303  
 304                         signal_add("event privmsg", (SIGNAL_FUNC) flood_privmsg);   /* Dangerous Function Cast (ID: 1364.26810) */
 305                         signal_add("event notice", (SIGNAL_FUNC) flood_notice);   /* Dangerous Function Cast (ID: 1359.26807) */
Wrong Number of Parameters306                         signal_add("ctcp msg", (SIGNAL_FUNC) flood_ctcp);     /* Dangerous Function Cast */
 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: 1358.26808) */
 313                 signal_remove("event notice", (SIGNAL_FUNC) flood_notice);   /* Dangerous Function Cast (ID: 1361.26805) */
 314                 signal_remove("ctcp msg", (SIGNAL_FUNC) flood_ctcp);   /* Dangerous Function Cast (ID: 1362.26809) */
 315         }
 316 } 




Change Warning 1360.26804 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: