Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at imem.c:25

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

maildir_notify_changes

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-storage.c)expand/collapse
Show more  
 905  static void maildir_notify_changes(struct mailbox *box)
 906  {
 907          struct maildir_mailbox *mbox = (struct maildir_mailbox *)box;
 908   
 909          if (box->notify_callback == NULL)
 910                  index_mailbox_check_remove_all(&mbox->ibox);
 911          else {
 912                  index_mailbox_check_add(&mbox->ibox,
 913[+][+]                                         t_strconcat(mbox->path, "/new", NULL));
expand/collapse

index_mailbox_check_add

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-mailbox-check.c)expand/collapse
Show more  
 60  void index_mailbox_check_add(struct index_mailbox *ibox,
 61                               const char *path)
 62  {
 63          struct index_notify_file *file;
 64          struct stat st;
 65          struct io *io = NULL;
 66          struct index_notify_io *aio;
 67   
 68[+]         (void)io_add_notify(path, notify_callback, ibox, &io);
 69          if (io != NULL) {
 70                  aio = i_new(struct index_notify_io, 1);
 71                  aio->io = io;
 72                  aio->next = ibox->notify_ios;
 73                  ibox->notify_ios = aio;
 74          }
 75   
 76          file = i_new(struct index_notify_file, 1);
 77[+]         file->path = i_strdup(path);
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 );
Show more  
Show more  
Show more  




Change Warning 11834.24717 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: