Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at array.h:113

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

virtual_sync_apply_existing_appends

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-sync.c)expand/collapse
Show more  
 1260  virtual_sync_apply_existing_appends(struct virtual_sync_context *ctx)
 1261  {
 1262          uint32_t virtual_ext_id = ctx->mbox->virtual_ext_id;
 1263          struct virtual_backend_box *bbox = NULL;
 1264          const struct mail_index_header *hdr;
 1265          const struct virtual_mail_index_record *vrec;
 1266          struct virtual_backend_uidmap uidmap;
 1267          const void *data;
 1268          bool expunged;
 1269          uint32_t seq, seq2;
 1270   
 1271          if (!ctx->mbox->uids_mapped)
 1272                  return;
 1273   
 1274          hdr = mail_index_get_header(ctx->sync_view);
 1275          if (ctx->mbox->sync_virtual_next_uid >= hdr->next_uid)
 1276                  return;
 1277   
 1278          /* another process added messages to virtual index. get backend boxes'
 1279             uid lists up-to-date by adding the new messages there. */
 1280          if (!mail_index_lookup_seq_range(ctx->sync_view,
 1281                                           ctx->mbox->sync_virtual_next_uid,
 1282[+]                                          (uint32_t)-1, &seq, &seq2))
 1283                  return;
 1284   
 1285          memset(&uidmap, 0, sizeof(uidmap));
 1286          for (; seq <= seq2; seq++) {
 1287                  mail_index_lookup_ext(ctx->sync_view, seq, virtual_ext_id,
 1288                                        &data, &expunged);
 1289                  vrec = data;
 1290                  uidmap.real_uid = vrec->real_uid;
 1291                  mail_index_lookup_uid(ctx->sync_view, seq, &uidmap.virtual_uid);
 1292   
 1293                  if (bbox == NULL || bbox->mailbox_id != vrec->mailbox_id) {
 1294                          bbox = virtual_backend_box_lookup(ctx->mbox,
 1295[+]                                                           vrec->mailbox_id);
 1296                  }
 1297[+]                 array_append(&bbox->uids, &uidmap, 1);
expand/collapse

array_append_i

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h)expand/collapse
Show more  
 111  array_append_i(struct array *array, const void *data, unsigned int count)
 112  {
 113          buffer_append(array->buffer, data, count * array->element_size);
Show more  
Show more  




Change Warning 8161.24577 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: