Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at istream.c:209

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

dbox_index_append_commit_new

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-index.c)expand/collapse
Show more  
 799  static int dbox_index_append_commit_new(struct dbox_index_append_context *ctx,
 800                                          struct dbox_file *file, string_t *str)
 801  {
 802          struct mail_storage *storage = &ctx->index->mbox->storage->storage;
 803          struct dbox_index_record rec;
 804          struct stat st;
 805          unsigned int file_id;
 806   
 807          i_assert(file->append_count > 0);
 808   
 809          if (file->append_count == 1 && !file->maildir_file &&
 810[+]             !dbox_file_can_append(file, 0)) {
 811                  /* single UID message file */
 812                  i_assert(file->last_append_uid != 0);
 813                  file_id = file->last_append_uid | DBOX_FILE_ID_FLAG_UID;
 814                  return dbox_file_assign_id(file, file_id);
 815          }
 816   
 817          if (!ctx->locked_header) {
 818[+]                 if (dbox_index_lock_header(ctx->index) < 0)
 819                          return -1;
 820[+]                 if (dbox_index_read_header(ctx->index) < 0) {
expand/collapse

dbox_index_read_header

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-index.c)expand/collapse
Show more  
 220  static int dbox_index_read_header(struct dbox_index *index)
 221  {
 222          const char *line;
 223   
 224[+]         i_stream_sync(index->input);
expand/collapse

i_stream_sync

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/istream.c)expand/collapse
Show more  
 207  void i_stream_sync(struct istream *stream)
 208  {
 209          struct istream_private *_stream = stream->real_stream;
Show more  
Show more  
Show more  




Change Warning 7457.25576 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: