Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at fe-channels.c:530

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7299.28388
Procedure: cmd_names
Trace: view
Modified: Thu Nov 26 11:09:16 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/fe-common/core/fe-channels.c
   Enter cmd_names
 509 static void cmd_names(const char *data, SERVER_REC *server, WI_ITEM_REC *item) 
 510 {
 511         CHANNEL_REC *chanrec;
 512         GHashTable *optlist;
 513         GString *unknowns;
 514         char *channel, **channels, **tmp;
 515         int flags;
 516         void *free_arg;
 517  
 518         g_return_if_fail(data != NULL);
 519         if (!IS_SERVER(server) || !server->connected)
 520                 cmd_return_error(CMDERR_NOT_CONNECTED);
 521  
 522         if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS,
 523                             "names", &optlist, &channel))
 524                 return;
 525  
 526         if (strcmp(channel, "*") == 0 || *channel == '\0') {
 527                 if (!IS_CHANNEL(item))
 528                         cmd_param_error(CMDERR_NOT_JOINED);
 529  
true530                 channel = CHANNEL(item)->name;     /* Null Pointer Dereference */
Preconditions
data != 0
server->connected != 0
$unknown_421089 = 0
strlen(&$unknown_421089) = 0
Postconditions
_g_boolean_var_' = 1
channel' = &$unknown_421089




Change Warning 7299.28388 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: