Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Negative Character Value  at cons.c:555

Categories: MISC.NEGCHAR CWE:119 CWE:686
Warning ID: 3.28594
Similar Warnings: 3.28575, 3.28592
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/console/cons.c
   Enter acav
 545         int *acp;                       /* max num words in, num words found out */ 
 546         char **av;                      /* pointers to words */ 
 547 {
 548         int ac = 0;                     /* number of words found */ 
 549         char *p = s;            /* input scanner */ 
 550         char *q;                        /* output */ 
 551         int n = *acp;           /* max number of words allowed */ 
 552         int mode = 0;           /* quote mode */ 
 553  
 554         while (*p) {
Type is char or signed char555                 while (isspace(*p)) p++;     /* Negative Character Value */
 556                 if (*p) {
 557                         if (*p == '#')
 558                                 break;
 559                         if (ac >= n) {
 560                                 *acp = ac;
 561                                 return 1;
 562                         }
 563                         q = p;
 564                         av[ac++] = p;
 565                         while (*p) {




Change Warning 3.28594 : Negative Character Value

Because they are very similar, this warning shares annotations with warnings 3.28575 and 3.28592.
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.