# Fix TLS record overflow by limiting inner record length to 2^14 · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b0da5ccef50bf5018142dd38deaeaf91fa16429

Requested commit: 9b0da5ccef50bf5018142dd38deaeaf91fa16429

Commit: 9b0da5ccef50bf5018142dd38deaeaf91fa16429

Tree: 804974a6283f6742af0d1caa4110e830188b563f

Author: melonedo

Committer: Andrew Kelley

## Message

```
Fix TLS record overflow by limiting inner record length to 2^14

Per last paragraph of RFC 8446, Section 5.2, the length of the inner content of an encrypted record must not exceed 2^14 + 1, while that of the whole encrypted record must not exceed 2^14 + 256.

```

## Parents

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

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