Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Negative Character Value  at lpvmpack.c:2052

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 13.28591
Similar Warnings: 13.28590
Procedure: pvm_vunpackf
Trace: view
Modified: Thu Nov 26 11:26:20 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/lpvmpack.c
   Enter pvm_vunpackf
 2042                         } else 
 2043                                 if (isdigit(*p)) {   /* Negative Character Value (ID: 13.28590) */
 2044                                         cnt = atoi(p);
 2045                                         while (isdigit(*++p)) ;   /* Negative Character Value (ID: 12.28589) */
 2046                                 }
 2047                         if (*p == '.') {
 2048                                 if (*++p == '*') {
 2049                                         std = va_arg(ap, int);
 2050                                         p++;
 2051                                 } else 
Type is char or signed char2052                                         if (isdigit(*p)) {     /* Negative Character Value */
 2053                                                 std = atoi(p);
 2054                                                 while (isdigit(*++p)) ;   /* Negative Character Value (ID: 12.28588) */
 2055                                         }
 2056                         }
 2057                         for (cc = 1; cc; ) {
 2058                                 switch (*p++) {
 2059  
 2060                                 case 'h': 
 2061                                         vh = 1;
 2062                                         break;




Change Warning 13.28591 : Negative Character Value

Because they are very similar, this warning shares annotations with warning 13.28590.
CodeSonar has selected warning 13.28590 to represent this group of similar warnings. In order to edit this group, you must edit warning 13.28590.