Text  |   XML   |   Visible Warnings:

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

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 10.28584
Similar Warnings: 10.28587
Procedure: pvm_vpackf
Trace: view
Modified: Thu Nov 26 11:26:19 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_vpackf
 1799                                         cnt = atoi(p);
 1800                                         isv = 0;
 1801                                         while (isdigit(*++p)) ;   /* Negative Character Value (ID: 11.28586) */
 1802                                 }
 1803                         if (*p == '.') {
 1804                                 isv = 0;
 1805                                 if (*++p == '*') {
 1806                                         std = va_arg(ap, int);
 1807                                         p++;
 1808                                 } else 
Type is char or signed char1809                                         if (isdigit(*p)) {     /* Negative Character Value */
 1810                                                 std = atoi(p);
 1811                                                 while (isdigit(*++p)) ;   /* Negative Character Value (ID: 11.28585) */
 1812                                         }
 1813                         }
 1814                         for (cc = 1; cc; ) {
 1815                                 switch (*p++) {
 1816  
 1817                                 case 'h': 
 1818                                         vh = 1;
 1819                                         break;




Change Warning 10.28584 : Negative Character Value

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

Priority:
State:
Finding:
Owner:
Note: