Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Negative Character Value  at host.c:1117

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 2.28574
Procedure: acav
Trace: view
Modified: Thu Nov 26 11:26:09 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/host.c
   Enter acav
 1107         ac = 0;
 1108         while (*p) {   /* Null Pointer Dereference (ID: 22055.28726) */
 1109                 while (isspace(*p)) p++;   /* Negative Character Value (ID: 3.28575) */
 1110                 if (*p) {
 1111                         if (ac >= n) {
 1112         /* command too long */ 
 1113                                 *acp = ac;
 1114                                 return 1;
 1115                         }
 1116                         av[ac++] = p;
Type is char or signed char1117                         while (*p && !isspace(*p)) p++;     /* Negative Character Value */
 1118                         if (*p) *p++ = 0;
 1119                 }
 1120         }
 1121         *acp = ac;
 1122         return 0;
 1123 } 
 1124  
 1125  




Change Warning 2.28574 : Negative Character Value

Priority:
State:
Finding:
Owner:
Note: