Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at dbox-sync-file.c:125

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

dbox_sync_file_expunge

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync-file.c)expand/collapse
Show more  
 87  dbox_sync_file_expunge(struct dbox_sync_context *ctx, struct dbox_file *file,
 88                         const struct dbox_sync_file_entry *entry)
 89  {
 90          const struct seq_range *expunges;
 91          struct dbox_file *out_file = NULL;
 92          struct istream *input;
 93          struct ostream *output;
 94          uint32_t file_id, seq, uid;
 95          uoff_t first_offset, offset, physical_size;
 96          const char *out_path;
 97          unsigned int i, count;
 98          bool expunged;
 99          int ret;
 100   
 101          expunges = array_get(&entry->expunges, &count);
 102          if (!dbox_file_lookup(ctx->mbox, ctx->sync_view, expunges[0].seq1,
 103[+]                               &file_id, &first_offset))
 104                  return 0;
 105          i_assert(file_id == file->file_id);
 106          mail_index_expunge(ctx->trans, expunges[0].seq1);
 107   
 108          offset = first_offset;
 109          for (i = 0;;) {
 110                  if ((ret = dbox_file_seek_next(file, &offset, &uid,
 111[+]                                                &physical_size)) <= 0)
 112                          break;
 113                  if (uid == 0) {
 114                          /* EOF */
 115                          break;
 116                  }
 117   
 118                  if (i < count) {
 119                          mail_index_lookup_seq(ctx->sync_view, uid, &seq);
 120                          while (seq > expunges[i].seq2) {
 121                                  if (++i == count)
 122                                          break;
 123                          }
 124                  }
 125                  if (seq == 0 || (i < count && seq >= expunges[i].seq1 &&
Show more  




Change Warning 7469.25701 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: