Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-windows.c:630

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1209.1209
Procedure: sig_check_daychange
Trace: View
Modified: Wed Sep 2 11:39:39 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/fe-common/core/fe-windows.c
   Enter sig_check_daychange
 620         }
 621  
 622         if (tm->tm_hour != 23 || tm->tm_min != 59) {
 623                 daycheck = 0;
 624                 return TRUE;
 625         }
 626  
 627         /* time is 23:59 */ 
 628         if (daycheck == 0) {
 629                 daycheck = 1;
Wrong Number of Parameters630                 signal_add("print text", (SIGNAL_FUNC) sig_print_text);     /* Dangerous Function Cast */
 631         }
 632         return TRUE;
 633 
 634  
 635 static void read_settings(void)
 636 {
 637         if (daytag != -1) {
 638                 g_source_remove(daytag);
 639                 daytag = -1;
 640         }




Change Warning 1209.1209 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: