Text   |  XML   |  ReML   |   Visible Warnings:

Integer Overflow of Allocation Size  at mail-index-transaction-view.c:97

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

tview_apply_flag_updates

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index-transaction-view.c)expand/collapse
Show more  
 72  static const struct mail_index_record *
 73  tview_apply_flag_updates(struct mail_index_view_transaction *tview,
 74                           const struct mail_index_record *rec, uint32_t seq)
 75  {
 76          struct mail_index_transaction *t = tview->t;
 77          const struct mail_transaction_flag_update *updates;
 78          unsigned int idx, count;
 79   
 80          /* see if there are any flag updates */
 81          if (seq < t->min_flagupdate_seq || seq > t->max_flagupdate_seq ||
 82[+]             !array_is_created(&t->updates))
 83                  return rec;
 84   
 85          updates = array_get(&t->updates, &count);
 86          idx = mail_index_transaction_get_flag_update_pos(t, 0, count, seq);
 87          if (seq < updates[idx].uid1 || seq > updates[idx].uid2)
 88                  return rec;
 89   
 90          /* yes, we have flag updates. since we can't modify rec directly and
 91             we want to be able to handle multiple mail_index_lookup() calls 
 92             without the second one overriding the first one's data, we'll
 93             create a records array and return data from there */
 94          if (tview->recs == NULL) {
 95                  tview->recs_count = t->first_new_seq;
 96                  tview->recs = i_new(struct mail_index_record,
 97[+]                                     tview->recs_count);
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);
Show more  
Show more  




Change Warning 11976.24465 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: