Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at servers-setup.c:68

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2099.2100
Procedure: get_source_host_ip
Trace: View
Modified: Wed Sep 2 11:51:12 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/core/servers-setup.c
   Enter get_source_host_ip
 58 static void get_source_host_ip(void) 
 59 {
 60         const char *hostname;
 61         IPADDR ip4, ip6;
 62  
 63         if (source_host_ok)
 64                 return;
 65  
 66         /* FIXME: This will block! */ 
true67         hostname = settings_get_str("hostname");
hostname <= 409568         source_host_ok = *hostname != '\0' &&     /* Null Pointer Dereference */
Preconditions
source_host_ok = 0
Postconditions
hostname' = 0




Change Warning 2099.2100 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: