Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Negative Character Value  at hoster.c:452

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 4.28576
Procedure: makevis
Trace: view
Modified: Thu Nov 26 11:26:10 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/pvm3/src/hoster.c
   Enter makevis
 442  
 443  
 444 char * 
 445 makevis(dst, src) 
 446         char *dst;
 447         char *src;
 448 {
 449         char c;
 450  
 451         while (c = *src++ & 0x7f) {
Type is char or signed char452                 if (isprint(c))     /* Negative Character Value */
 453                         *dst++ = c;
 454  
 455                 else {
 456                         *dst++ = '^';
 457                         *dst++ = (c + '@') & 0x7f;
 458                 }
 459         }
 460         *dst = 0;
 461         return dst;
 462 } 




Change Warning 4.28576 : Negative Character Value

Priority:
State:
Finding:
Owner:
Note: