Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at network.c:541

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7257.28339
Procedure: net_host2ip
Trace: view
Modified: Thu Nov 26 11:08:56 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_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: 7258.28340) */
 165                 /* overridden IP address */ 
true166                 net_host2ip(settings_get_str("dcc_own_ip"), &temp_ip);
     /kat0/fletcher/SATE/2010/irssi-0.8.14/src/core/network.c
     Enter dcc_ip2str / net_host2ip
 537   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_297399 != 0
strlen(&$unknown_297399) != 0
Postconditions
host' = 0
ip' = &temp_ip.family




Change Warning 7257.28339 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: