# Merge pull request \#11302 from mitchellh/slice-null-cptr · gitcafe/zig

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

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

Visibility: public

Requested revision: 052079c99455d01312d377d72fa1b8b5c0b22aad

Requested commit: 052079c99455d01312d377d72fa1b8b5c0b22aad

Commit: 052079c99455d01312d377d72fa1b8b5c0b22aad

Tree: 173d2502fca52124fc6ab1616392547da6679e09

Author: Andrew Kelley

Committer: GitHub

## Message

```
Merge pull request #11302 from mitchellh/slice-null-cptr

stage2: runtime safety checks for slicing a null C pointer and @intCast truncating bits
```

## Parents

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

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

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