Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at mailbox-list-index.c:514

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

mailbox_list_index_dir_lookup_rec

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mailbox-list-index.c)expand/collapse
Show more  
 493  int mailbox_list_index_dir_lookup_rec(struct mailbox_list_index *index,
 494                                        const struct mailbox_list_dir_record *dir,
 495                                        const char *name,
 496                                        const struct mailbox_list_record **rec_r)
 497  {
 498          const struct mailbox_list_record *rec;
 499          struct mailbox_list_index_lookup_key key;
 500          bool failed = FALSE;
 501   
 502          /* binary search the current hierarchy level name. the values are 
 503             sorted primarily by their hash value and secondarily by the actual
 504             name */
 505          memset(&key, 0, sizeof(key));
 506          key.index = index;
 507          key.name = name;
 508          key.name_hash = crc32_str(name);
 509          key.failed = &failed;
 510   
 511          rec = bsearch(&key, MAILBOX_LIST_RECORDS(dir), dir->count, sizeof(*rec),
 512                        mailbox_list_record_cmp);
 513          if (failed)
 514                  return -1;
 515          if (rec == NULL)
 516                  return 0;
 517   
 518          *rec_r = rec;
 519          return 1;
 520  }
Show more  




Change Warning 7264.24416 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: