Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Buffer Overrun  at log.c:471

Categories: LANG.MEM.BO CWE:120 CWE:121 CWE:122 CWE:126
Warning ID: 2117.2118
Procedure: sig_rotate_check
Trace: View
Modified: Wed Sep 2 11:51:19 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/core/log.c
   Enter sig_rotate_check
 463 static int sig_rotate_check(void) 
 464 {
 465         static int last_hour = -1;
 466         struct tm tm;
 467         time_t now;
 468  
 469         /* don't do anything until hour is changed */ 
 470         now = time(NULL);
true471         memcpy(&tm, localtime(&now), sizeof(tm));     /* Buffer Overrun */
Preconditions
&$unknown_149792 = 56
Postconditions
tm.tm_sec' = &$unknown_149791
tmbuf.tm_sec' = &$unknown_149791




Change Warning 2117.2118 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: