Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at array.h:89

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

virtual_sync_apply_existing_expunges

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-sync.c)expand/collapse
Show more  
 1305  virtual_sync_apply_existing_expunges(struct virtual_mailbox *mbox,
 1306                                       struct mailbox_sync_context *sync_ctx)
 1307  {
 1308          struct index_mailbox_sync_context *isync_ctx =
 1309                  (struct index_mailbox_sync_context *)sync_ctx;
 1310          struct virtual_backend_box *bbox = NULL;
 1311          struct seq_range_iter iter;
 1312          const struct virtual_mail_index_record *vrec;
 1313          const void *data;
 1314          bool expunged;
 1315          unsigned int n = 0;
 1316          uint32_t seq;
 1317   
 1318          if (isync_ctx->expunges == NULL)
 1319                  return;
 1320   
 1321          seq_range_array_iter_init(&iter, isync_ctx->expunges);
 1322[+]         while (seq_range_array_iter_nth(&iter, n++, &seq)) {
 1323                  mail_index_lookup_ext(mbox->ibox.view, seq,
 1324                                        mbox->virtual_ext_id, &data, &expunged);
 1325                  vrec = data;
 1326   
 1327                  if (bbox == NULL || bbox->mailbox_id != vrec->mailbox_id) {
 1328                          bbox = virtual_backend_box_lookup(mbox,
 1329[+]                                                           vrec->mailbox_id);
 1330[+]                         if (!array_is_created(&bbox->sync_outside_expunges))
expand/collapse

array_is_created_i

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h)expand/collapse
Show more  
 87  array_is_created_i(const struct array *array)
 88  {
 89          return array->buffer != NULL;
Show more  
Show more  




Change Warning 8162.24599 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: