aboutsummaryrefslogtreecommitdiff
path: root/lib/std/compress
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-05 10:48:22 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-05 10:48:22 -0700
commitfc40d2372335e69be175972ffabb55bc7fb77230 (patch)
tree184daa7845a95f54da0c8c5c6ffba0feffa01b6c /lib/std/compress
parent7a27f0d80c5ce9d596b2b43699e131ab387e1317 (diff)
parent9d409233b2c62e1d24635165ac6b3b7686ffd5e4 (diff)
downloadzig-fc40d2372335e69be175972ffabb55bc7fb77230.tar.gz
zig-fc40d2372335e69be175972ffabb55bc7fb77230.zip
Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen
Conflicts: * build.zig * lib/std/array_list.zig * lib/std/c/ast.zig * lib/std/c/parse.zig * lib/std/os/bits/linux.zig
Diffstat (limited to 'lib/std/compress')
-rw-r--r--lib/std/compress/deflate.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/std/compress/deflate.zig b/lib/std/compress/deflate.zig
index 09e162933c..88b9ec8672 100644
--- a/lib/std/compress/deflate.zig
+++ b/lib/std/compress/deflate.zig
@@ -662,14 +662,12 @@ test "lengths overflow" {
// malformed final dynamic block, tries to write 321 code lengths (MAXCODES is 316)
// f dy hlit hdist hclen 16 17 18 0 (18) x138 (18) x138 (18) x39 (16) x6
// 1 10 11101 11101 0000 010 010 010 010 (11) 1111111 (11) 1111111 (11) 0011100 (01) 11
- const stream = [_]u8{
- 0b11101101, 0b00011101, 0b00100100, 0b11101001, 0b11111111, 0b11111111, 0b00111001, 0b00001110
- };
+ const stream = [_]u8{ 0b11101101, 0b00011101, 0b00100100, 0b11101001, 0b11111111, 0b11111111, 0b00111001, 0b00001110 };
const reader = std.io.fixedBufferStream(&stream).reader();
var window: [0x8000]u8 = undefined;
var inflate = inflateStream(reader, &window);
var buf: [1]u8 = undefined;
- std.testing.expectError(error.InvalidLength, inflate.read(&buf));
+ std.testing.expectError(error.InvalidLength, inflate.read(&buf));
}