# Revert "Merge pull request \#18410 from dweiller/by-length-slice-bug" · gitcafe/zig

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

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

Visibility: public

Requested revision: bd46410419086acd274e33b47d9ae5dc1f678a1b

Requested commit: bd46410419086acd274e33b47d9ae5dc1f678a1b

Commit: bd46410419086acd274e33b47d9ae5dc1f678a1b

Tree: 7899c29d06764ad2b64dea83137847b4d3f2710e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "Merge pull request #18410 from dweiller/by-length-slice-bug"

This reverts commit d9d840a33ac8abb0e616de862f592821a7f4a35e, reversing
changes made to a04d4330945565b8d6f298ace993f6954c42d0f3.

This is not an adequate implementation of the missing safety check, as
evidenced by the changes to std.json that are reverted in this commit.

Reopens #18382
Closes #18510

```

## Parents

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

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