Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at convert-storage.c:407

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

convert_storage

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/convert/convert-storage.c)expand/collapse
Show more  
 394  int convert_storage(const char *source_data,
 395                      struct mail_namespace *dest_namespaces,
 396                      const struct convert_settings *set)
 397  {
 398          struct mail_user *user = dest_namespaces->user;
 399          struct mail_namespace *source_ns, *dest_inbox_ns;
 400          struct dotlock *dotlock;
 401          enum mail_storage_flags src_flags;
 402          enum file_lock_method lock_method;
 403          const char *home, *path, *error;
 404          int ret;
 405   
 406          i_assert(user->namespaces == dest_namespaces);
 407[+]         source_ns = mail_namespaces_init_empty(user);
expand/collapse

mail_namespaces_init_empty

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-namespace.c)expand/collapse
Show more  
 278  struct mail_namespace *
 279  mail_namespaces_init_empty(struct mail_user *user)
 280  {
 281          struct mail_namespace *ns;
 282   
 283[+]         ns = i_new(struct mail_namespace, 1);
expand/collapse

i_malloc

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 7  void *i_malloc(size_t size)
 8  {
 9      void *rv = malloc(size);
 10      if( !rv )
 11          abort();
 12      return rv;
Show more  
 284          ns->user = user;
 285          ns->owner = user;
 286          ns->prefix = i_strdup("");
 287          ns->flags = NAMESPACE_FLAG_INBOX | NAMESPACE_FLAG_LIST_PREFIX |
 288                  NAMESPACE_FLAG_SUBSCRIPTIONS;
 289          user->namespaces = ns;
 290          return ns;
Show more  
 408          user->namespaces = dest_namespaces;
 409   
 410          dest_inbox_ns = mail_namespace_find_inbox(dest_namespaces);
 411          src_flags = dest_inbox_ns->storage->flags;
 412          lock_method = dest_inbox_ns->storage->lock_method;
 413   
 414          src_flags |= MAIL_STORAGE_FLAG_NO_AUTOCREATE;
 415          if (mail_storage_create(source_ns, NULL, source_data,
 416[+]                                 src_flags, lock_method, &error) < 0) {
 417                  /* No need for conversion. */
 418                  return 0;
Show more  




Change Warning 12143.25324 : Leak

Because they are very similar, this warning shares annotations with warning 12143.25325.

Priority:
State:
Finding:
Owner:
Note: