Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Test After Dereference  at Irc.c:61

Categories: LANG.STRUCT.NTAD
Warning ID: 7378.28476
Similar Warnings: 7378.28475
Procedure: perl_dcc_fill_hash
Trace: view
Modified: Thu Nov 26 11:15:12 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     
LineSource
  /kat0/fletcher/SATE/2010/irssi-0.8.14/src/perl/irc/Irc.c
  Enter perl_dcc_fill_hash
46 static void perl_dcc_fill_hash(HV *hv, DCC_REC *dcc) 
47 {
48         hv_store(hv, "type", 4, new_pv(dcc_type2str(dcc->type)), 0);   /* Null Pointer Dereference (ID: 7380.28478) */
49         hv_store(hv, "orig_type", 9, new_pv(dcc_type2str(dcc->orig_type)), 0);   /* Null Pointer Dereference (ID: 7379.28477) */
50         hv_store(hv, "created", 7, newSViv(dcc->created), 0);
51  
52         hv_store(hv, "server", 6, iobject_bless(dcc->server), 0);
53         hv_store(hv, "servertag", 9, new_pv(dcc->servertag), 0);
54         hv_store(hv, "mynick", 6, new_pv(dcc->mynick), 0);
55         hv_store(hv, "nick", 4, new_pv(dcc->nick), 0);
56  
57         hv_store(hv, "chat", 4, simple_iobject_bless(dcc->chat), 0);
58         hv_store(hv, "target", 6, new_pv(dcc->target), 0);
59         hv_store(hv, "arg", 3, new_pv(dcc->arg), 0);
60  
61         hv_store(hv, "addr", 4, new_pv(dcc->addrstr), 0);     /* Null Test After Dereference */
62         hv_store(hv, "port", 4, newSViv(dcc->port), 0);
63  
64         hv_store(hv, "starttime", 9, newSViv(dcc->starttime), 0);
65         hv_store(hv, "transfd", 7, newSViv(dcc->transfd), 0);
66 } 




Change Warning 7378.28476 : Null Test After Dereference

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