Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at cmd-append.c:471

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

get_mailbox

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/cmd-append.c)expand/collapse
Show more  
 452  static struct mailbox *
 453  get_mailbox(struct client_command_context *cmd, const char *name)
 454  {
 455          struct mail_storage *storage;
 456          struct mailbox *box;
 457   
 458          if (!client_verify_mailbox_name(cmd, name,
 459[+]                                 CLIENT_VERIFY_MAILBOX_SHOULD_EXIST_TRYCREATE))
 460                  return NULL;
 461   
 462          storage = client_find_storage(cmd, &name);
 463          if (storage == NULL)
 464                  return NULL;
 465   
 466          if (cmd->client->mailbox != NULL &&
 467              mailbox_equals(cmd->client->mailbox, storage, name))
 468                  return cmd->client->mailbox;
 469   
 470          box = mailbox_open(&storage, name, NULL, MAILBOX_OPEN_SAVEONLY |
 471[+]                            MAILBOX_OPEN_FAST | 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 12006.24977 : Leak

Priority:
State:
Finding:
Owner:
Note: