Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at dbox-sync-rebuild.c:228

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

dbox_sync_index_uid_file

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync-rebuild.c)expand/collapse
Show more  
 211  dbox_sync_index_uid_file(struct dbox_sync_rebuild_context *ctx,
 212                           const char *dir, const char *fname)
 213  {
 214          struct dbox_file *file;
 215          unsigned long uid;
 216          char *p;
 217          uoff_t offset = 0;
 218          int ret;
 219   
 220          fname += sizeof(DBOX_MAIL_FILE_MULTI_PREFIX)-1;
 221          uid = strtoul(fname, &p, 10);
 222          if (*p != '\0' || uid == 0 || uid >= (uint32_t)-1) {
 223                  i_warning("dbox %s: Ignoring invalid filename %s",
 224                            ctx->mbox->path, fname);
 225                  return 0;
 226          }
 227   
 228          file = dbox_file_init(ctx->mbox, uid | DBOX_FILE_ID_FLAG_UID);
 229          file->current_path = i_strdup_printf("%s/%s", dir, fname);
 230   
 231          ret = dbox_sync_index_file_next(ctx, file, &offset) < 0 ? -1 : 0;
 232          dbox_file_unref(&file);
 233          return ret;
 234  }
Show more  




Change Warning 12155.25715 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: