Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at mode-lists.c:132

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1238.26684
Procedure: mode_lists_init
Trace: view
Modified: Thu Nov 26 10:59: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/irc/core/mode-lists.c
   Enter mode_lists_init
 122         chanrec = irc_channel_find(server, channel);
 123         if (chanrec != NULL) {
 124                 tim = (time_t) atol(tims);
 125                 banlist_add(chanrec, ban, setby, tim);
 126         }
 127         g_free(params);
 128 }
 129  
 130 void mode_lists_init(void) 
 131 {
Wrong Number of Parameters132         signal_add("channel destroyed", (SIGNAL_FUNC) channel_destroyed);     /* Dangerous Function Cast */
 133  
 134         signal_add("chanquery ban", (SIGNAL_FUNC) event_banlist);   /* Dangerous Function Cast (ID: 1239.26685) */
 135 } 
 136  
 137 void mode_lists_deinit(void)
 138 {
 139         signal_remove("channel destroyed", (SIGNAL_FUNC) channel_destroyed);   /* Dangerous Function Cast (ID: 1241.26687) */
 140  
 141         signal_remove("chanquery ban", (SIGNAL_FUNC) event_banlist);   /* Dangerous Function Cast (ID: 1240.26686) */
 142 }




Change Warning 1238.26684 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: