Text  |   XML   |   Visible Warnings:

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

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 3.28575
Similar Warnings: 3.28592, 3.28594
Procedure: acav
Trace: view
Modified: Thu Nov 26 11:26:26 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
 1099         char **av;              /* pointers to args */ 
 1100 {
 1101         register int ac;
 1102         register char *p = s;
 1103         register int n = *acp;
 1104  
 1105         /* separate out words of command */ 
 1106  
 1107         ac = 0;
 1108         while (*p) {   /* Null Pointer Dereference (ID: 22055.28726) */
Type is char or signed char1109                 while (isspace(*p)) p++;     /* Negative Character Value */
 1110                 if (*p) {
 1111                         if (ac >= n) {
 1112         /* command too long */ 
 1113                                 *acp = ac;
 1114                                 return 1;
 1115                         }
 1116                         av[ac++] = p;
 1117                         while (*p && !isspace(*p)) p++;   /* Negative Character Value (ID: 2.28574) */
 1118                         if (*p) *p++ = 0;
 1119                 }




Change Warning 3.28575 : Negative Character Value

Because they are very similar, this warning shares annotations with warnings 3.28592 and 3.28594.

Priority:
State:
Finding:
Owner:
Note: