Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Negative file descriptor  at term-terminfo.c:585

Categories: POSIX.IO.NEGFD
Warning ID: 2374.2385
Procedure: term_gets
Trace: View
Modified: Wed Sep 2 12:22:22 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-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 2374.2385 : Negative file descriptor

Priority:
State:
Finding:
Owner:
Note: