Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3211.27755
Procedure: sig_print_starting
Trace: view
Modified: Thu Nov 26 11:04:16 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 sig_print_starting
 94  
 95 /* something is going to be printed to screen, print our current netsplit 
 96    message before it. */ 
 97 static void sig_print_starting(void) 
 98 {
 99         while (modes != NULL) {
 100                 print_mode(modes->data);
 101                 mode_destroy(modes->data);
 102         }
 103  
Wrong Number of Parameters104         signal_remove("print starting", sig_print_starting);     /* Dangerous Function Cast */
 105 } 
 106  
 107 static int sig_check_modes(void)
 108 {
 109         GSList *tmp, *next;
 110  
 111         if (modes == NULL)
 112                 return 1;
 113  
 114         for (tmp = modes; tmp != NULL; tmp = next) {




Change Warning 3211.27755 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: