Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1208.1208
Procedure: sig_print_text
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_print_text
 592         GSList *tmp;
 593         time_t t;
 594         struct tm *tm;
 595  
 596         t = time(NULL);
 597         tm = localtime(&t);
 598         if (tm->tm_hour != 0 || tm->tm_min != 0)
 599                 return;
 600  
 601         daycheck = 2;
Wrong Number of Parameters602         signal_remove("print text", (SIGNAL_FUNC) sig_print_text);     /* Dangerous Function Cast */
 603  
 604         /* day changed, print notice about it to every window */ 
 605         for (tmp = windows; tmp != NULL; tmp = tmp->next)
 606                 window_print_daychange(tmp->data, tm);
 607 
 608  
 609 static int sig_check_daychange(void)
 610 {
 611         time_t t;
 612         struct tm *tm;




Change Warning 1208.1208 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: