# ubsan: extend \`ptr\` before adding to avoid overflow · gitcafe/zig

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

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

Visibility: public

Requested revision: 658fba982ce7280721e770df1d7ce4ab3f4eaf40

Requested commit: 658fba982ce7280721e770df1d7ce4ab3f4eaf40

Commit: 658fba982ce7280721e770df1d7ce4ab3f4eaf40

Tree: 6c5ad38136062108e1d068a227447fdc22c6daa5

Author: David Rubin

Committer: David Rubin

## Message

```
ubsan: extend `ptr` before adding to avoid overflow

```

## Parents

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

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