Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at dcc.c:210

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2193.2198
Procedure: dcc_listen
Trace: View
Modified: Wed Sep 2 11:52:02 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/irssi/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
$param_1 != 0
&$unknown_496600 != 10
Postconditions
iface' = $param_1
ip' = $param_2
listen_ip' = 0
own_ip' = 0
port' = $param_3




Change Warning 2193.2198 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: