# Redact string panics \(\#51248\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f0e301cea0b86bbb057f526bf12d672b8b3e958f)

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

Visibility: public

Requested revision: f0e301cea0b86bbb057f526bf12d672b8b3e958f

Requested commit: f0e301cea0b86bbb057f526bf12d672b8b3e958f

Commit: f0e301cea0b86bbb057f526bf12d672b8b3e958f

Tree: c6b5cd2e263121d2d5d90124605dda4e99579517

Author: Conrad Irwin

Committer: GitHub

## Message

```
Redact string panics (#51248)

String panics are a non-trivial percentage of the crashes we see at Zed,
and
doubly unfortunately they may incidentally include the contents of a
user's
buffer.

Although this hasn't happened yet (to my knowledge), I don't want to be
in the position of having received sensitive information this way.

See also https://github.com/rust-lang/rust/pull/153677

Release Notes:

- N/A
```

## Parents

- [86a757237ec4f455911738428d36e462ca9fdabf](https://git.cafe/gitcafe/zed/commit/86a757237ec4f455911738428d36e462ca9fdabf?format=markdown)

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