Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Negative Shift Amount  at tracer.c:149

Categories: LANG.ARITH.NEGSHIFT
Warning ID: 2875.2941
Procedure: work
Trace: View
Modified: Wed Sep 2 12:51:40 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/pvm/pvm3/tracer/tracer.c
   Enter work
 107 work() 
 108 {
 109         struct timeval more_events;
 110  
 111         struct timeval *timeout;
 112  
 113         char cmd[1024];
 114  
 115         char *prompt;
 116  
 117 #ifdef FDSETNOTSTRUCT 
   ...
 133  
 134 #ifdef WIN32 
 135 #define read _read 
 136         HANDLE hStdin;
 137         struct timeval zerotimeout = { 0, 0 };
 138         hStdin = GetStdHandle(STD_INPUT_HANDLE); 
 139 #endif 
 140  
 141         /* Initialize File Descriptors */ 
 142  
 143         FD_ZERO( &rfds );
 144  
 145         /* Get stdin input */ 
 146 #ifndef WIN32 
true147         in = fileno( stdin );
 148  
 149         FD_SET( in, &rfds );     /* Negative Shift Amount */
Preconditions
&$unknown_3079536 = 16
Postconditions
*stdin' is allocated by fopen
bytes_before(stdin)' = 0
__arr' = &rfds.__fds_bits[0]
__i' = &$unknown_3079536
errno' != 0
in' = -1
rfds.__fds_bits[15]' = 0




Change Warning 2875.2941 : Negative Shift Amount

Priority:
State:
Finding:
Owner:
Note: