Text  |   XML   |   Visible Warnings:

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

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2420.2438
Similar Warnings: 2420.2437
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
 1791                         isv = 1;
 1792                         vl = vh = vu = 0;
 1793                         if (*p == '*') {
 1794                                 cnt = va_arg(ap, int);
 1795                                 isv = 0;
 1796                                 p++;
 1797                         } else 
 1798                                 if (isdigit(*p)) {   /* Negative Character Value (ID: 2419.2439) */
 1799                                         cnt = atoi(p);
 1800                                         isv = 0;
Type is char or signed char1801                                         while (isdigit(*++p)) ;     /* Negative Character Value */
 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);
 1811                                                 while (isdigit(*++p)) ;   /* Negative Character Value (ID: 2420.2437) */




Change Warning 2420.2438 : Negative Character Value

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