Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at istream.c:181

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

index_mail_get_virtual_size

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-mail.c)expand/collapse
Show more  
 385  int index_mail_get_virtual_size(struct mail *_mail, uoff_t *size_r)
 386  {
 387          struct index_mail *mail = (struct index_mail *)_mail;
 388          struct index_mail_data *data = &mail->data;
 389          struct message_size hdr_size, body_size;
 390          struct istream *input;
 391          uoff_t old_offset;
 392   
 393[+]         if (index_mail_get_cached_virtual_size(mail, size_r))
 394                  return 0;
 395   
 396          old_offset = data->stream == NULL ? 0 : data->stream->v_offset;
 397[+]         if (mail_get_stream(_mail, &hdr_size, &body_size, &input) < 0)
 398                  return -1;
 399[+]         i_stream_seek(data->stream, old_offset);
expand/collapse

i_stream_seek

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/istream.c)expand/collapse
Show more  
 179  void i_stream_seek(struct istream *stream, uoff_t v_offset)
 180  {
 181          struct istream_private *_stream = stream->real_stream;
Show more  
Show more  




Change Warning 7459.25801 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: