diff options
| author | Simon Tatham <anakin@pobox.com> | 2012-05-03 17:40:08 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2012-05-03 17:40:08 +0000 |
| commit | ca37980e070dcd96d27d299bd4426858ec37ceae (patch) | |
| tree | 739dc238fc821cdccc4d6616ee3b9bffbc07de50 | |
| parent | 66eb3850217ab01cff7e3622ea5f34f757b82138 (diff) | |
| download | halibut-ca37980e070dcd96d27d299bd4426858ec37ceae.zip halibut-ca37980e070dcd96d27d299bd4426858ec37ceae.tar.gz halibut-ca37980e070dcd96d27d299bd4426858ec37ceae.tar.bz2 halibut-ca37980e070dcd96d27d299bd4426858ec37ceae.tar.xz | |
Ahem. Don't invert the length _twice_.
[originally from svn r9476]
| -rw-r--r-- | deflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2441,7 +2441,7 @@ int deflate_decompress_data(deflate_decompress_ctx *dctx, */ if (dctx->nbits < 16) goto finished; - nlen = 0xFFFF & ~dctx->bits; + nlen = dctx->bits & 0xFFFF; EATBITS(16); if (dctx->uncomplen != (nlen ^ 0xFFFF)) { error = DEFLATE_ERR_UNCOMP_HDR; |