Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Negative Character Value  at tracer.c:677

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 3.28592
Similar Warnings: 3.28575, 3.28594
Procedure: acav
Trace: view
Modified: Thu Nov 26 11:26:26 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/tracer/tracer.c
   Enter acav
 667         int *acp;                       /* max num words in, num words found out */ 
 668         char **av;                      /* pointers to words */ 
 669 {
 670         int ac = 0;                     /* number of words found */ 
 671         char *p = s;            /* input scanner */ 
 672         char *q;                        /* output */ 
 673         int n = *acp;           /* max number of words allowed */ 
 674         int mode = 0;           /* quote mode */ 
 675  
 676         while (*p) {
Type is char or signed char677                 while (isspace(*p)) p++;     /* Negative Character Value */
 678                 if (*p) {
 679                         if (*p == '#')
 680                                 break;
 681                         if (ac >= n) {
 682                                 *acp = ac;
 683                                 return 1;
 684                         }
 685                         q = p;
 686                         av[ac++] = p;
 687                         while (*p) {




Change Warning 3.28592 : Negative Character Value

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