From fac8993bef9c4a2884e9d1a49adcd0b94e7174ea Mon Sep 17 00:00:00 2001 From: Zoltan Szabadka Date: Wed, 1 Apr 2015 16:20:16 +0200 Subject: [PATCH] Add a missing state transition to CopyUncompressedBlockToOutput(). --- dec/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dec/decode.c b/dec/decode.c index 533d2e5..1f655e4 100644 --- a/dec/decode.c +++ b/dec/decode.c @@ -683,6 +683,7 @@ BrotliResult CopyUncompressedBlockToOutput(BrotliOutput output, } s->meta_block_remaining_len--; } + s->sub_state[0] = BROTLI_STATE_SUB_NONE; return BROTLI_RESULT_SUCCESS; case BROTLI_STATE_SUB_UNCOMPRESSED_FILL: /* If we have more to copy than the remaining size of the ringbuffer,