Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-windows.c:602

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2368.27360
Procedure: sig_print_text
Trace: view
Modified: Thu Nov 26 11:02:27 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/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 2368.27360 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: