Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-modes.c:135

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3202.27751
Procedure: msg_multi_mode
Trace: view
Modified: Thu Nov 26 11:04:15 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/fe-common/irc/fe-modes.c
   Enter msg_multi_mode
 125                 signal_remove("print starting", (SIGNAL_FUNC) sig_print_starting);   /* Dangerous Function Cast (ID: 3198.27750) */
 126         return 1;
 127 }
 128  
 129 static void msg_multi_mode(IRC_CHANNEL_REC *channel, const char *sender,
 130                            const char *addr, const char *mode) 
 131 {
 132         MODE_REC *rec;
 133  
 134         if (modes == NULL)
Wrong Number of Parameters135                 signal_add("print starting", (SIGNAL_FUNC) sig_print_starting);     /* Dangerous Function Cast */
 136  
 137         rec = mode_find_channel(channel);
 138         if (rec != NULL && strcmp(rec->mode, mode) != 0) {
 139                 /* different mode than last time, show and remove the old */ 
 140                 print_mode(rec);
 141                 mode_destroy(rec);
 142                 rec = NULL;
 143         }
 144  
 145         if (rec == NULL) {




Change Warning 3202.27751 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: