Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Null Pointer Dereference  at lpvm.c:865

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2745.2800
Procedure: ttpcb_new
Trace: View
Modified: Wed Sep 2 12:44: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/lpvm.c
   Enter ttpcb_new
 856 struct ttpcb * 
 857 ttpcb_new() 
 858 {
 859         struct ttpcb *pcbp;
 860  
 861         if (pcbp = TALLOC(1, struct ttpcb, "tpcb")) {
 862                 BZERO((char*)pcbp, sizeof(struct ttpcb));
 863                 pcbp->tt_fd = -1;
true864                 pcbp->tt_rxfrag = pmsg_new(1);
pcbp->tt_rxfrag <= 4095865                 BZERO((char*)pcbp->tt_rxfrag, sizeof(struct pmsg));     /* Null Pointer Dereference */
Preconditions
numpmsgs = 0
Postconditions
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
$heap_162503' = 0
bytes_after(&$heap_162503)' = 88
$heap_162503' is allocated by malloc
$heap_162503' is allocated
bytes_before(&$heap_162503)' = 0
strlen(&$heap_162503)' = 0
((char*)&$heap_162503)[24]' = -1
((char*)&$heap_162503)[64]' = 0
pcbp' = &$heap_162503




Change Warning 2745.2800 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: