Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Negative file descriptor  at term-terminfo.c:585

Categories: IO.NEGFD
Warning ID: 7435.28538
Procedure: term_gets
Trace: view
Modified: Thu Nov 26 11:20:52 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-text/term-terminfo.c
   Enter term_gets
 578 void term_gets(void) 
 579 {
 580         int ret, i, char_len;
 581  
 582         /* fread() doesn't work */ 
 583  
 584         ret = read(fileno(current_term->in),
true585                    term_inbuf + term_inbuf_pos, sizeof(term_inbuf)-term_inbuf_pos);     /* Negative file descriptor */
Postconditions
*current_term->in' is allocated by fopen
bytes_before(current_term->in)' = 0
errno' != 0




Change Warning 7435.28538 : Negative file descriptor

Priority:
State:
Finding:
Owner:
Note: