Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at maildir-sync-index.c:92

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

maildir_sync_flags

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-sync-index.c)expand/collapse
Show more  
 64  static int maildir_sync_flags(struct maildir_mailbox *mbox, const char *path,
 65                                struct maildir_index_sync_context *ctx)
 66  {
 67          struct mailbox *box = &mbox->ibox.box;
 68          struct stat st;
 69          const char *dir, *fname, *newfname, *newpath;
 70          enum mail_index_sync_type sync_type;
 71          uint8_t flags8;
 72   
 73          fname = strrchr(path, '/');
 74          i_assert(fname != NULL);
 75          fname++;
 76          dir = t_strdup_until(path, fname);
 77   
 78          /* get the current flags and keywords */
 79          maildir_filename_get_flags(ctx->keywords_sync_ctx,
 80                                     fname, &ctx->flags, &ctx->keywords);
 81   
 82          /* apply changes */
 83          flags8 = ctx->flags;
 84          index_sync_changes_apply(ctx->sync_changes, NULL,
 85                                   &flags8, &ctx->keywords, &sync_type);
 86          ctx->flags = flags8;
 87   
 88          /* and try renaming with the new name */
 89          newfname = maildir_filename_set_flags(ctx->keywords_sync_ctx, fname,
 90                                                ctx->flags, &ctx->keywords);
 91[+]         newpath = t_strconcat(dir, newfname, NULL);
 92          if (strcmp(path, newpath) == 0) {
Show more  




Change Warning 7318.25480 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: