Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at mail-transaction-log-append.c:265

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

log_append_ext_intro

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log-append.c)expand/collapse
Show more  
 238  static void log_append_ext_intro(struct log_append_context *ctx,
 239                                   uint32_t ext_id, uint32_t reset_id)
 240  {
 241          struct mail_index_transaction *t = ctx->trans;
 242          const struct mail_index_registered_ext *rext;
 243          struct mail_transaction_ext_intro *intro;
 244          buffer_t *buf;
 245          uint32_t idx;
 246          unsigned int count;
 247   
 248          i_assert(ext_id != (uint32_t)-1);
 249   
 250          if (t->reset ||
 251              !mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {
 252                  /* new extension */
 253                  idx = (uint32_t)-1;
 254          }
 255   
 256          rext = array_idx(&t->view->index->extensions, ext_id);
 257          if (!array_is_created(&t->ext_resizes)) {
 258                  intro = NULL;
 259                  count = 0;
 260          } else {
 261                  intro = array_get_modifiable(&t->ext_resizes, &count);
 262          }
 263   
 264          buf = buffer_create_dynamic(pool_datastack_create(), 128);
 265          if (ext_id < count && intro[ext_id].name_size != 0) {
Show more  




Change Warning 7241.24614 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: