Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at dcc.c:210

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7260.28344
Procedure: dcc_listen
Trace: view
Modified: Thu Nov 26 11:08:57 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/irssi-0.8.14/src/irc/dcc/dcc.c
   Enter dcc_listen
 197 GIOChannel *dcc_listen(GIOChannel *iface, IPADDR *ip, int *port) 
 198 {
 199         GIOChannel *handle;
 200         IPADDR *listen_ip = NULL;
 201         const char *dcc_port, *p, *own_ip;
 202         int first, last;
 203  
 204         if (net_getsockname(iface, ip, NULL) == -1)
 205                 return NULL;
 206  
 207         /* figure out if we want to listen in IPv4 address or in "any" address,
 208            which may mean IPv4+IPv6 or just IPv6 depending on OS. */ 
true209         own_ip = settings_get_str("dcc_own_ip");
own_ip <= 4095210         if (*own_ip != '\0') {     /* Null Pointer Dereference */
Preconditions
iface != 0
&$unknown_298593 != 10
Postconditions
listen_ip' = 0
own_ip' = 0




Change Warning 7260.28344 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: