Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at tdpro.c:563

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2698.2751
Similar Warnings: 2698.2750
Procedure: tm_connect
Trace: View
Modified: Wed Sep 2 12:43:49 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/tdpro.c
   Enter tm_connect
 536 tm_connect(tp, mp) 
 537         struct task *tp;
 538         struct pmsg *mp;
 539 {
 540         int ver;                                                /* task's libpvm t-d proto version */ 
 541         char authfn[PVMTMPNAMLEN];      /* t-auth file name */ 
 542         int d;
 543         int cc;
 544  
 545         if (upkint(mp, &ver) || upkstr(mp, authfn, sizeof(authfn))) {
 546                 pvmlogerror("tm_connect() bad msg format\n");
 547                 goto bail;
 548         }
 549  
 550         /*
 551         *       if protocols are not compatible, send nack 
 552         *       context will get flushed after reply is sent 
 553         */ 
 554  
 555         if (ver != TDPROTOCOL) {
 556                 pvmlogprintf("tm_connect() t-d protocol mismatch (%d/%d)\n",
 557                         ver, TDPROTOCOL);
 558  
true559                 mp = replymessage(mp);
 560                 pkint(mp, TDPROTOCOL);
 561                 pkint(mp, 0);
 562                 pkstr(mp, "");
mp <= 4095563                 mp->m_flag |= MM_PRIO;     /* Null Pointer Dereference */
Preconditions
&$unknown_907536 != 1318
&$unknown_907538 = 0
&$unknown_907539 = 0
&$unknown_907540 = 0
numpmsgs = 0
Postconditions
atnewline' = 1
errno' != 0
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
mp' = 0
tmbuf.tm_sec' = &$unknown_907535
tp' = $param_1
ver' = &$unknown_907536




Change Warning 2698.2751 : Null Pointer Dereference

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