Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Test After Dereference  at Irc.c:61

Categories: LANG.STRUCT.NTAD
Warning ID: 2316.2326
Similar Warnings: 2316.2325
Procedure: perl_dcc_fill_hash
Trace: View
Modified: Wed Sep 2 12:09:24 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
  /u1/paul/SATE/2010/c/irssi/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: 2318.2328) */
49         hv_store(hv, "orig_type", 9, new_pv(dcc_type2str(dcc->orig_type)), 0);   /* Null Pointer Dereference (ID: 2317.2327) */
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 2316.2326 : Null Test After Dereference

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