Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Negative Character Value  at cons.c:555

Categories: LANG.TYPE.NEGCHAR CWE:119 CWE:686
Warning ID: 2412.2446
Similar Warnings: 2412.2427, 2412.2444
Procedure: acav
Trace: View
Modified: Wed Sep 2 12:37:42 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/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 2412.2446 : Negative Character Value

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