Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Negative Character Value  at hoster.c:452

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2413.2428
Procedure: makevis
Trace: View
Modified: Wed Sep 2 12:37:12 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/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 2413.2428 : Negative Character Value

Priority:
State:
Finding:
Owner:
Note: