Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at virtual-save.c:88

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

virtual_save_begin

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-save.c)expand/collapse
Show more  
 63  int virtual_save_begin(struct mail_save_context *_ctx, struct istream *input)
 64  {
 65          struct virtual_save_context *ctx = (struct virtual_save_context *)_ctx;
 66          struct virtual_mailbox *mbox =
 67                  (struct virtual_mailbox *)_ctx->transaction->box;
 68          struct mail *mail;
 69   
 70          if (ctx->backend_save_ctx == NULL) {
 71                  mail_storage_set_error(_ctx->transaction->box->storage,
 72                          MAIL_ERROR_NOTPOSSIBLE,
 73                          "Can't save messages to this virtual mailbox");
 74                  return -1;
 75          }
 76   
 77          ctx->backend_box = ctx->backend_save_ctx->transaction->box;
 78          ctx->backend_keywords =
 79                  virtual_copy_keywords(_ctx->transaction->box, _ctx->keywords,
 80                                        ctx->backend_box);
 81   
 82          mailbox_save_set_flags(ctx->backend_save_ctx, _ctx->flags,
 83                                 ctx->backend_keywords);
 84          mailbox_save_set_received_date(ctx->backend_save_ctx,
 85                                         _ctx->received_date,
 86                                         _ctx->received_tz_offset);
 87          mailbox_save_set_from_envelope(ctx->backend_save_ctx,
 88[+]                                        _ctx->from_envelope);
expand/collapse

mailbox_save_set_from_envelope

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 877  void mailbox_save_set_from_envelope(struct mail_save_context *ctx,
 878                                      const char *envelope)
 879  {
 880          i_free(ctx->from_envelope);
 881[+]         ctx->from_envelope = i_strdup(envelope);
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  
 882  }
Show more  
 89          mailbox_save_set_guid(ctx->backend_save_ctx, _ctx->guid);
 90   
 91          if (_ctx->dest_mail != NULL) {
 92                  mail = virtual_mail_set_backend_mail(_ctx->dest_mail,
 93                                                       mbox->save_bbox);
 94                  mailbox_save_set_dest_mail(ctx->backend_save_ctx, mail);
 95          }
 96[+]         return mailbox_save_begin(&ctx->backend_save_ctx, input);
expand/collapse

mailbox_save_begin

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 898  int mailbox_save_begin(struct mail_save_context **ctx, struct istream *input)
 899  {
 900          struct mailbox *box = (*ctx)->transaction->box;
 901          int ret;
 902   
 903          if (box->v.save_begin == NULL) {
 904                  mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
 905                                         "Saving messages not supported");
 906                  ret = -1;
 907          } else {
 908                  ret = box->v.save_begin(*ctx, input);
Show more  
Show more  




Change Warning 8151.24635 : Leak

Priority:
State:
Finding:
Owner:
Note: