Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at pvmcruft.c:646

Categories: LANG.MEM.NPD CWE:476
Warning ID: 321.29000
Procedure: pvmxtoi
Trace: view
Modified: Thu Nov 26 11:29:28 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/src/tdpro.c
   Enter tm_setopt
 2593 tm_setopt(tp, mp) 
 2594         struct task *tp;
 2595         struct pmsg *mp;
 2596 {
 2597         int what;
 2598         char *val;
 2599         int x;
 2600  
true2601         while (!upkint(mp, &what) && !upkstralloc(mp, &val)) {
 2602                 switch (what) {
 2603  
 2604                 case TS_OUTTID: 
 2605                         x = pvmxtoi(val);
 2606                         change_output(tp, x, tp->t_outctx, tp->t_outtag);
 2607                         break;
 2608  
 2609                 case TS_OUTCTX: 
val <= 40952610                         x = pvmxtoi(val);
     /kat0/fletcher/SATE/2010/pvm3/src/pvmcruft.c
     Enter tm_setopt / pvmxtoi
 640   pvmxtoi(p) 
 641           char *p;
 642   {
 643           int i = 0;
 644           char c;
 645    
p <= 4095646           if (p[0] == '0' && (p[1] == 'x' || p[1] == 'X'))     /* Null Pointer Dereference */  /* 5 more... */
     Exit tm_setopt / pvmxtoi
 2611                         change_output(tp, tp->t_outtid, x, tp->t_outtag);
 2612                         break;
 2613  
 2614                 case TS_OUTTAG: 
 2615                         x = pvmxtoi(val);
 2616                         change_output(tp, tp->t_outtid, tp->t_outctx, x);
 2617                         break;
 2618  
 2619                 case TS_TRCTID: 
 2620                         x = pvmxtoi(val);
 2621                         change_trace(tp, x, tp->t_trcctx, tp->t_trctag);
 2622                         break;
 2623  
 2624                 case TS_TRCCTX: 
 2625                         x = pvmxtoi(val);
 2626                         change_trace(tp, tp->t_trctid, x, tp->t_trctag);
 2627                         break;
 2628  
 2629                 case TS_TRCTAG: 
 2630                         x = pvmxtoi(val);
 2631                         change_trace(tp, tp->t_trctid, tp->t_trcctx, x);
 2632                         break;
 2633  
 2634                 default: 
 2635                         pvmlogprintf("tm_setopt() ? option %d val <%s>\n", what, val);
 2636                         break;
 2637                 }
 2638                 if (val)
 2639                         PVM_FREE(val);
Preconditions
&$unknown_1140517 >= 1
&$unknown_1140519 = 2
Postconditions
errno' != 0
i' = 0
p' = 0
val' = 0
what' = &$unknown_1140519




Change Warning 321.29000 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: