Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at mail-index-modseq.c:234

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

mail_index_modseq_lookup_keywords

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index-modseq.c)expand/collapse
Show more  
 230  uint64_t mail_index_modseq_lookup_keywords(struct mail_index_view *view,
 231                                             const struct mail_keywords *keywords,
 232                                             uint32_t seq)
 233  {
 234[+]         struct mail_index_map_modseq *mmap = mail_index_map_modseq(view);
expand/collapse

mail_index_map_modseq

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index-modseq.c)expand/collapse
Show more  
 129  static struct mail_index_map_modseq *
 130  mail_index_map_modseq(struct mail_index_view *view)
 131  {
 132          struct mail_index_map_modseq *mmap = view->map->rec_map->modseq;
 133          uint32_t ext_map_idx;
 134   
 135          if (mmap != NULL)
 136                  return mmap;
 137   
 138          /* don't start tracking until we've seen modseq extension intro */
 139          if (!mail_index_map_get_ext_idx(view->map, view->index->modseq_ext_id,
 140                                          &ext_map_idx))
 141                  return NULL;
 142   
 143[+]         mmap = i_new(struct mail_index_map_modseq, 1);
expand/collapse

i_malloc

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 7  void *i_malloc(size_t size)
 8  {
 9      void *rv = malloc(size);
 10      if( !rv )
 11          abort();
 12      return rv;
Show more  
 144          i_array_init(&mmap->,
 145                        +
 146[+]                      array_count(&view->index->keywords));
 147          view->map->rec_map->modseq = mmap;
 148          return mmap;
Show more  
 235          unsigned int i, ;
 236          uint64_t modseq, highest_modseq = 0;
 237   
 238          if (mmap != NULL) {
 239                  /* first try to find a specific match */
 240                  for (i = 0; i < keywords->count; i++) {
 241                           =  +
 242                                  keywords->idx[i];
 243   
 244                          modseq = modseq_idx_lookup(mmap, , seq);
 245                          if (highest_modseq < modseq)
 246                                  highest_modseq = modseq;
 247                  }
 248          }
 249   
 250          if (highest_modseq == 0) {
 251                  /* no specific matches, fallback to using the highest */
 252                  highest_modseq = mail_index_modseq_lookup(view, seq);
 253          }
 254          return highest_modseq;
Show more  




Change Warning 11414.24574 : Leak

Priority:
State:
Finding:
Owner:
Note: