# std.crypto.Certificate: fix timedate parsing · gitcafe/zig

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

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

Visibility: public

Requested revision: 05bad1f42d06ab77967ce14ac47253f5dd6d170e

Requested commit: 05bad1f42d06ab77967ce14ac47253f5dd6d170e

Commit: 05bad1f42d06ab77967ce14ac47253f5dd6d170e

Tree: 55a642ff7f261190a1c9d10773bb2927001cca45

Author: Luis Cáceres

Committer: Luis Cáceres

## Message

```
std.crypto.Certificate: fix timedate parsing

This commit fixes parsing in parseYear4 and parseTimeDigits by using a
wider vector data type such that the intermediate result cannot overflow
and the error check remains correct.

```

## Parents

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

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