Displaying 3 results from an estimated 3 matches for "i_stream_read_eof".
2020 Nov 10
1
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...x-mail-binary.c
> @@ -339,7 +339,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input)
> i_stream_skip(full_input, skip);
> cur_block_offset += skip;
>
> - if (cur_block->input->eof) {
> + if (i_stream_read_eof(cur_block->input)) {
> /* go to the next block */
> if (++block_idx == block_count) {
> i_assert(i_stream_read_eof(full_input));
Actually, that breaks things. This one should be ok:
diff --git a/src/lib-st...
2020 Nov 04
2
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
Hi,
I would like to report an issue which is 100% reproducible with a
specific mail available in the reproducer attached to Red Hat's bugzilla
<https://bugzilla.redhat.com/show_bug.cgi?id=1894418>
(https://bugzilla.redhat.com/attachment.cgi?id=1726535):
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Return-Path: <XXXXXXXXX at
2020 Nov 10
0
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...+ b/src/lib-storage/index/index-mail-binary.c
@@ -339,7 +339,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input)
i_stream_skip(full_input, skip);
cur_block_offset += skip;
- if (cur_block->input->eof) {
+ if (i_stream_read_eof(cur_block->input)) {
/* go to the next block */
if (++block_idx == block_count) {
i_assert(i_stream_read_eof(full_input));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://...