# flate: Handle invalid block type · gitcafe/zig

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

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

Visibility: public

Requested revision: 23fff3442de38877c556f3cda19f3cccef255f7a

Requested commit: 23fff3442de38877c556f3cda19f3cccef255f7a

Commit: 23fff3442de38877c556f3cda19f3cccef255f7a

Tree: 1ccef586bab59ea7f7ddd805d8c8c785f00b5754

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
flate: Handle invalid block type

Fixes `panic: invalid enum value` when the type bits had the u2 value of 3.

Contributes towards #24741

```

## Parents

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

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