Text   |  XML   |  ReML   |   Visible Warnings:

Free Null Pointer  at mail-storage.c:888

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);
 28          }
 29          if (ctx->guid == NULL) {
 30[+]                 if (mail_get_special(mail, MAIL_FETCH_GUID, &guid) < 0)
 31                          return -1;
 32                  if (*guid != '\0')
 33[+]                         mailbox_save_set_guid(ctx, guid);
expand/collapse

mailbox_save_set_guid

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-storage.c)expand/collapse
Show more  
 884  void mailbox_save_set_guid(struct mail_save_context *ctx, const char *guid)
 885  {
 886          i_assert(guid == NULL || *guid != '\0');
 887   
 888          i_free(ctx->guid);
Show more  
Show more  




Change Warning 11647.24853 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: