Text  |   XML   |   Visible Warnings:

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

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2411.2426
Procedure: acav
Trace: View
Modified: Wed Sep 2 12:37: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
   /u1/paul/SATE/2010/c/pvm/pvm3/src/host.c
   Enter acav
 1107         ac = 0;
 1108         while (*p) {   /* Null Pointer Dereference (ID: 2519.2550) */
 1109                 while (isspace(*p)) p++;   /* Negative Character Value (ID: 2412.2427) */
 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 2411.2426 : Negative Character Value

Priority:
State:
Finding:
Owner:
Note: