Text  |   XML   |   Visible Warnings:

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

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




Change Warning 2419.2439 : Negative Character Value

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