From 1e5950cba9f6839448fd4bd077ab05f0f7197ab8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 31 Dec 2019 17:01:56 -0800 Subject: [PATCH] ircd::server: Fix false assertions in dynamic chunk context. --- ircd/server.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ircd/server.cc b/ircd/server.cc index 93dff39e9..91bb8d3a9 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -3556,7 +3556,7 @@ ircd::server::tag::read_chunk_dynamic_content(const const_buffer &buffer, state.content_read += addl_content_read; assert(state.chunk_read <= state.content_read); assert(state.chunk_read <= state.chunk_length); - assert(state.content_length >= state.content_read); + assert(state.content_length >= state.chunk_length); // Invoke the user's optional progress callback; this function // should be marked noexcept for the time being. @@ -3606,7 +3606,6 @@ ircd::server::chunk_dynamic_content_completed(tag &tag, // State sanity tests assert(state.content_length == size_chunks(req.in)); - assert(state.content_length >= state.content_read); assert(state.content_length >= state.chunk_length); assert(state.content_length >= state.chunk_read); assert(state.content_read >= state.chunk_length);