From 69e9428c1b2d75be898a7a6938a16d54f4ee9f11 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sun, 6 Oct 2019 16:58:49 +1100 Subject: [PATCH] Fix pdst_mark for hand-written decode_huffman_fast --- script/wuffs-deflate-decoder-decode-huffman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/wuffs-deflate-decoder-decode-huffman.c b/script/wuffs-deflate-decoder-decode-huffman.c index 5c345de3..7a14caf9 100644 --- a/script/wuffs-deflate-decoder-decode-huffman.c +++ b/script/wuffs-deflate-decoder-decode-huffman.c @@ -253,7 +253,7 @@ wuffs_base__status c_wuffs_deflate__decoder__decode_huffman_fast( uint32_t n_bits = self->private_impl.f_n_bits; // Initialize other local variables. - uint8_t* pdst_mark = pdst; + uint8_t* pdst_mark = a_dst->data.ptr; uint32_t lmask = MASK(self->private_impl.f_n_huffs_bits[0]); uint32_t dmask = MASK(self->private_impl.f_n_huffs_bits[1]);