Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at ostream.c:135

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

mbox_save_finish

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/mbox/mbox-save.c)expand/collapse
Show more  
 653  int mbox_save_finish(struct mail_save_context *_ctx)
 654  {
 655          struct mbox_save_context *ctx = (struct mbox_save_context *)_ctx;
 656   
 657          if (!ctx->failed && ctx->eoh_offset == (uoff_t)-1)
 658                  (void)mbox_save_finish_headers(ctx);
 659   
 660          if (ctx->output != NULL) {
 661                  /* make sure everything is written */
 662                  if (o_stream_flush(ctx->output) < 0)
 663                          write_error(ctx);
 664          }
 665   
 666          ctx->finished = TRUE;
 667          if (!ctx->failed) {
 668                  T_BEGIN {
 669                          if (mbox_write_content_length(ctx) < 0 ||
 670[+]                             mbox_append_lf(ctx) < 0)
expand/collapse

mbox_append_lf

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/mbox/mbox-save.c)expand/collapse
Show more  
 103  static int mbox_append_lf(struct mbox_save_context *ctx)
 104  {
 105[+]         if (o_stream_send(ctx->output, "\n", 1) < 0)
expand/collapse

o_stream_send

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/ostream.c)expand/collapse
Show more  
 122  ssize_t o_stream_send(struct ostream *stream, const void *data, size_t size)
 123  {
 124          struct const_iovec iov;
 125   
 126          iov.iov_base = data;
 127          iov.iov_len = size;
 128   
 129[+]         return o_stream_sendv(stream, &iov, 1);
expand/collapse

o_stream_sendv

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/ostream.c)expand/collapse
Show more  
 132  ssize_t o_stream_sendv(struct ostream *stream, const struct const_iovec *iov,
 133                         unsigned int iov_count)
 134  {
 135          struct ostream_private *_stream = stream->real_stream;
Show more  
Show more  
Show more  
Show more  




Change Warning 7426.26058 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: