Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at servers.c:114

Categories: LANG.MEM.NPD CWE:476
Warning ID: 5916.28281
Procedure: server_create_tag
Trace: view
Modified: Thu Nov 26 11:08:30 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/core/servers.c
   Enter server_create_tag
 100 static char *server_create_tag(SERVER_CONNECT_REC *conn) 
 101 {
 102         GString *str;
 103         char *tag;
 104         int num;
 105  
 106         g_return_val_if_fail(IS_SERVER_CONNECT(conn), NULL);
 107  
true108         tag = conn->chatnet != NULL && *conn->chatnet != '\0' ? 
$temp52 <= 4095109                 g_strdup(conn->chatnet) : 
true110                 server_create_address_tag(conn->address);
 111  
 112         if (conn->tag != NULL && server_find_tag(conn->tag) == NULL &&
 113             server_find_lookup_tag(conn->tag) == NULL &&
tag <= 4095114             strncmp(conn->tag, tag, strlen(tag)) == 0) {     /* Null Pointer Dereference */
Preconditions
conn->address = 0
*conn->tag != 0
strlen(conn->tag) != 0
*conn->chatnet = 0
strlen(conn->chatnet) = 0
Postconditions
_g_boolean_var_' = 1
tag' = 0




Change Warning 5916.28281 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: