Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at imap-quota-plugin.c:88

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

cmd_getquotaroot

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/imap-quota/imap-quota-plugin.c)expand/collapse
Show more  
 66  static bool cmd_getquotaroot(struct client_command_context *cmd)
 67  {
 68          struct client *client = cmd->client;
 69          struct mail_storage *storage;
 70          struct mail_namespace *ns;
 71          struct mailbox *box;
 72          struct quota_root_iter *iter;
 73          struct quota_root *root;
 74          const char *orig_mailbox, *mailbox, *name;
 75          string_t *str;
 76   
 77          /* <mailbox> */
 78[+]         if (!client_read_string_args(cmd, 1, &mailbox))
 79                  return FALSE;
 80   
 81          orig_mailbox = mailbox;
 82          storage = client_find_storage(cmd, &mailbox);
 83          if (storage == NULL)
 84                  return TRUE;
 85   
 86          box = mailbox_open(&storage, mailbox, NULL, (MAILBOX_OPEN_READONLY |
 87                                                       MAILBOX_OPEN_FAST |
 88[+]                                                      MAILBOX_OPEN_KEEP_RECENT));
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 11990.24937 : Leak

Priority:
State:
Finding:
Owner:
Note: