Text  |   XML   |   Visible Warnings:

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

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2422.2442
Similar Warnings: 2422.2443
Procedure: pvm_vunpackf
Trace: View
Modified: Wed Sep 2 12:37:32 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_vunpackf
 2033  
 2034         while (*p) {
 2035                 if (*p++ == '%') {
 2036                         cnt = 1;
 2037                         std = 1;
 2038                         vl = vh = vu = 0;
 2039                         if (*p == '*') {
 2040                                 cnt = va_arg(ap, int);
 2041                                 p++;
 2042                         } else 
Type is char or signed char2043                                 if (isdigit(*p)) {     /* Negative Character Value */
 2044                                         cnt = atoi(p);
 2045                                         while (isdigit(*++p)) ;   /* Negative Character Value (ID: 2421.2441) */
 2046                                 }
 2047                         if (*p == '.') {
 2048                                 if (*++p == '*') {
 2049                                         std = va_arg(ap, int);
 2050                                         p++;
 2051                                 } else 
 2052                                         if (isdigit(*p)) {   /* Negative Character Value (ID: 2422.2443) */
 2053                                                 std = atoi(p);




Change Warning 2422.2442 : Negative Character Value

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

Priority:
State:
Finding:
Owner:
Note: