Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at ostream.c:76

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)
 671                                  ctx->failed = TRUE;
 672                  } T_END;
 673          }
 674   
 675          if (ctx->mail != NULL) {
 676                  index_mail_cache_parse_deinit(ctx->mail, ctx->ctx.received_date,
 677                                                !ctx->failed);
 678          }
 679          if (ctx->input != NULL)
 680                  i_stream_destroy(&ctx->input);
 681   
 682          if (ctx->failed && ctx->mail_offset != (uoff_t)-1) {
 683                  /* saving this mail failed - truncate back to beginning of it */
 684[+]                 (void)o_stream_flush(ctx->output);
expand/collapse

o_stream_flush

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/ostream.c)expand/collapse
Show more  
 74  int o_stream_flush(struct ostream *stream)
 75  {
 76          struct ostream_private *_stream = stream->real_stream;
Show more  
Show more  




Change Warning 7427.26059 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: