Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at imap-acl-plugin.c:297

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

cmd_myrights

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/imap-acl/imap-acl-plugin.c)expand/collapse
Show more  
 280  static bool cmd_myrights(struct client_command_context *cmd)
 281  {
 282          struct mail_storage *storage;
 283          struct mailbox *box;
 284          const char *mailbox, *real_mailbox;
 285          const char *const *rights;
 286          string_t *str;
 287   
 288[+]         if (!client_read_string_args(cmd, 1, &mailbox))
 289                  return FALSE;
 290   
 291          real_mailbox = mailbox;
 292          storage = client_find_storage(cmd, &real_mailbox);
 293          if (storage == NULL)
 294                  return TRUE;
 295   
 296          box = mailbox_open(&storage, real_mailbox, NULL,
 297[+]                            ACL_MAILBOX_OPEN_FLAGS | MAILBOX_OPEN_IGNORE_ACLS);
expand/collapse

mailbox_open

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 456  struct mailbox *mailbox_open(struct mail_storage **_storage, const char *name,
 457                               struct istream *input,
 458                               enum mailbox_open_flags flags)
 459  {
 460          struct mail_storage *storage = *_storage;
 461          struct mailbox *box;
 462   
 463          if (storage->list->v.get_storage != NULL) {
 464                  if (storage->list->v.get_storage(storage->list,
 465                                                   &name, &storage) < 0)
 466                          return NULL;
 467                  *_storage = storage;
 468          }
 469   
 470          mail_storage_clear_error(storage);
 471   
 472[+]         if (!mailbox_list_is_valid_existing_name(storage->list, name)) {
 473                  mail_storage_set_error(storage, MAIL_ERROR_PARAMS,
 474[+]                                        "Invalid mailbox name");
expand/collapse

mail_storage_set_error

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 273  void mail_storage_set_error(struct mail_storage *storage,
 274                              enum mail_error error, const char *string)
 275  {
 276          i_free(storage->error_string);
 277[+]         storage->error_string = i_strdup(string);
expand/collapse

i_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 23  char *i_strdup(const char *str)
 24  {
 25      char *rv = strdup( str );
 26      if( !rv )
 27          abort();
 28      return rv;
Show more  
 278          storage->error = error;
Show more  
Show more  
Show more  




Change Warning 11993.24935 : Leak

Priority:
State:
Finding:
Owner:
Note: