Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at irc-commands.c:245

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2168.2172
Procedure: cmd_invite
Trace: View
Modified: Wed Sep 2 11:51:42 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/core/irc-commands.c
   Enter cmd_invite
 230 static void cmd_invite(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) 
 231 {
 232         char *nick, *channame;
 233         void *free_arg;
 234  
 235         CMD_IRC_SERVER(server);
 236  
 237         if (!cmd_get_params(data, &free_arg, 2, &nick, &channame))
 238                 return;
 239  
 240         if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
 241         if (*channame == '\0' || strcmp(channame, "*") == 0) {
 242                 if (!IS_IRC_CHANNEL(item))
 243                         cmd_param_error(CMDERR_NOT_JOINED);
 244  
true245                 channame = IRC_CHANNEL(item)->name;     /* Null Pointer Dereference */
Preconditions
$param_1 != 0
((char*)$param_2)[56] != 0
((char*)$param_3)[4] != *chat_protocols->data
$unknown_385522 != 0
strlen(&$unknown_385522) != 0
$unknown_385523 != 0
strlen(&$unknown_385523) = 1
Postconditions
channame' = &$unknown_385523
data' = $param_1
item' = $param_3
nick' = &$unknown_385522
server' = $param_2




Change Warning 2168.2172 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: