Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Negative Character Value  at lpvmpack.c:1811

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2420.2437
Similar Warnings: 2420.2438
Procedure: pvm_vpackf
Trace: View
Modified: Wed Sep 2 12:37:31 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/lpvmpack.c
   Enter pvm_vpackf
 1801                                         while (isdigit(*++p)) ;   /* Negative Character Value (ID: 2420.2438) */
 1802                                 }
 1803                         if (*p == '.') {
 1804                                 isv = 0;
 1805                                 if (*++p == '*') {
 1806                                         std = va_arg(ap, int);
 1807                                         p++;
 1808                                 } else 
 1809                                         if (isdigit(*p)) {   /* Negative Character Value (ID: 2419.2436) */
 1810                                                 std = atoi(p);
Type is char or signed char1811                                                 while (isdigit(*++p)) ;     /* Negative Character Value */
 1812                                         }
 1813                         }
 1814                         for (cc = 1; cc; ) {
 1815                                 switch (*p++) {
 1816  
 1817                                 case 'h': 
 1818                                         vh = 1;
 1819                                         break;
 1820  
 1821                                 case 'l': 




Change Warning 2420.2437 : Negative Character Value

Because they are very similar, this warning shares annotations with warning 2420.2438.

Priority:
State:
Finding:
Owner:
Note: