Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Negative Character Value  at host.c:1109

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2412.2427
Similar Warnings: 2412.2444, 2412.2446
Procedure: acav
Trace: View
Modified: Wed Sep 2 12:37:42 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/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: 2519.2550) */
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: 2411.2426) */
 1118                         if (*p) *p++ = 0;
 1119                 }




Change Warning 2412.2427 : Negative Character Value

Because they are very similar, this warning shares annotations with warnings 2412.2444 and 2412.2446.

Priority:
State:
Finding:
Owner:
Note: