Text   |  XML   |  ReML   |   Visible Warnings:

Free Null Pointer  at mail-storage.c:880

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

mail_storage_copy

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-copy.c)expand/collapse
Show more  
 8  int mail_storage_copy(struct mail_save_context *ctx, struct mail *mail)
 9  {
 10          struct istream *input;
 11          const char *from_envelope, *guid;
 12          time_t received_date;
 13   
 14[+]         if (mail_get_stream(mail, NULL, NULL, &input) < 0)
 15                  return -1;
 16   
 17          if (ctx->received_date == (time_t)-1) {
 18                  if (mail_get_received_date(mail, &received_date) < 0)
 19                          return -1;
 20                  mailbox_save_set_received_date(ctx, received_date, 0);
 21          }
 22          if (ctx->from_envelope == NULL) {
 23                  if (mail_get_special(mail, MAIL_FETCH_FROM_ENVELOPE,
 24[+]                                      &from_envelope) < 0)
 25                          return -1;
 26                  if (*from_envelope != '\0')
 27[+]                         mailbox_save_set_from_envelope(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);
Show more  
Show more  




Change Warning 11648.24854 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: