Text   |  XML   |  ReML   |   Visible Warnings:

Integer Overflow of Allocation Size  at virtual-sync.c:1065

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

virtual_sync_backend_map_uids

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-sync.c)expand/collapse
Show more  
 1047  static void virtual_sync_backend_map_uids(struct virtual_sync_context *ctx)
 1048  {
 1049          uint32_t virtual_ext_id = ctx->mbox->virtual_ext_id;
 1050          struct virtual_sync_mail *vmails;
 1051          struct virtual_backend_box *bbox, *const *bboxes;
 1052          struct virtual_backend_uidmap *uidmap = NULL;
 1053          struct virtual_add_record add_rec;
 1054          const struct virtual_mail_index_record *vrec;
 1055          const void *data;
 1056          bool expunged;
 1057          uint32_t i, vseq, vuid, messages, count;
 1058          unsigned int j = 0, uidmap_count = 0;
 1059   
 1060[+]         messages = mail_index_view_get_messages_count(ctx->sync_view);
 1061   
 1062          /* sort the messages in current view by their backend mailbox and 
 1063             real UID */
 1064          vmails = messages == 0 ? NULL :
 1065[+]                 i_new(struct virtual_sync_mail, messages);
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 11980.24711 : Integer Overflow of Allocation Size

Priority:
State:
Finding:
Owner:
Note: