# fix flate regression · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3e8cb153ea44ad1f403fbf6d23a67c839df57925)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3e8cb153ea44ad1f403fbf6d23a67c839df57925

Requested commit: 3e8cb153ea44ad1f403fbf6d23a67c839df57925

Commit: 3e8cb153ea44ad1f403fbf6d23a67c839df57925

Tree: 0a196079d351a3a64b3d19818064801a8323a732

Author: Igor Anić

Committer: Andrew Kelley

## Message

```
fix flate regression

Until now literal and distance code lengths where treated as two
different arrays. But according to rfc they can overlap:

  The code length repeat codes can cross from HLIT + 257 to the
  HDIST + 1 code lengths.  In other words, all code lengths form
  a single sequence of HLIT + HDIST + 258 values.

Now code lengths are decoded in single array which is then split
to literal and distance part.

```

## Parents

- [79e99c401ca32031d29aff77e43758ca0b67d5d9](https://git.cafe/gitcafe/zig/commit/79e99c401ca32031d29aff77e43758ca0b67d5d9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3e8cb153ea44ad1f403fbf6d23a67c839df57925?format=markdown)
