Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference  at lpvm.c:865

Categories: LANG.MEM.NPD CWE:476
Warning ID: 326.29005
Procedure: ttpcb_new
Trace: view
Modified: Thu Nov 26 11:29:29 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/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
errno' != 0
freepmsgs.m_link' = &freepmsgs.m_link
freepmsgs.m_rlink' = &freepmsgs.m_link
$heap_334934' = 0
bytes_after(&$heap_334934)' = 64
$heap_334934' is allocated by malloc
$heap_334934' is allocated
bytes_before(&$heap_334934)' = 0
((char*)&$heap_334934)[16]' = -1
((char*)&$heap_334934)[52]' = 0
pcbp' = &$heap_334934




Change Warning 326.29005 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: