Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at ctcp.c:156

Categories: LANG.MEM.NPD CWE:476
Warning ID: 6747.28300
Procedure: ctcp_send_parsed_reply
Trace: view
Modified: Thu Nov 26 11:08:35 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/core/ctcp.c
   Enter ctcp_version
 167 static void ctcp_version(IRC_SERVER_REC *server, const char *data,
true168                          const char *nick) 
 169 {
settings_get_str$result76 <= 4095170         ctcp_send_parsed_reply(server, nick, "VERSION",
true171                                settings_get_str("ctcp_version_reply"));
     Enter ctcp_version / ctcp_send_parsed_reply
 148   static void ctcp_send_parsed_reply(IRC_SERVER_REC *server, const char *nick,
 149                                      const char *cmd, const char *args) 
 150   {
 151           char *str, *pstr;
 152    
 153           g_return_if_fail(server != NULL);
 154           g_return_if_fail(nick != NULL);
 155    
args <= 4095156           if (*args == '\0')     /* Null Pointer Dereference */  /* Null Pointer Dereference (ID: 6750.28301) */
     Exit ctcp_version / ctcp_send_parsed_reply
Preconditions
server != 0
cmd != 0
Postconditions
_g_boolean_var_' = 1
_g_boolean_var_' = 1
args' = 0
cmd' = &#string9[0]
nick' = nick
server' = server




Change Warning 6747.28300 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: