Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at network.c:541

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2190.2195
Procedure: net_host2ip
Trace: View
Modified: Wed Sep 2 11:52:00 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_ip2str
 159 void dcc_ip2str(IPADDR *ip, char *host) 
 160 {
 161         IPADDR temp_ip;
 162         guint32 addr;
 163  
 164         if (*settings_get_str("dcc_own_ip") != '\0') {   /* Null Pointer Dereference (ID: 2191.2196) */
 165                 /* overridden IP address */ 
true166                 net_host2ip(settings_get_str("dcc_own_ip"), &temp_ip);
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/network.c
     Enter dcc_ip2str / net_host2ip
$param_1 <= 4095537   int net_host2ip(const char *host, IPADDR *ip) 
 538   {
 539           unsigned long addr;
 540    
host <= 4095541           if (strchr(host, ':') != NULL) {     /* Null Pointer Dereference */
     Exit dcc_ip2str / net_host2ip
Preconditions
$unknown_495006 != 0
strlen(&$unknown_495006) != 0
Postconditions
host' = 0
host' = $param_2
ip' = $param_1
ip' = &temp_ip.family




Change Warning 2190.2195 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: