Skip to content

fix: add explicit null check for old_table#34

Merged
DavidLeeds merged 1 commit intomasterfrom
leeds/nullptr-math-fix
Jan 11, 2026
Merged

fix: add explicit null check for old_table#34
DavidLeeds merged 1 commit intomasterfrom
leeds/nullptr-math-fix

Conversation

@DavidLeeds
Copy link
Owner

@DavidLeeds DavidLeeds commented Jan 11, 2026

Adding an offset to a null pointer is technically undefined behavior even if the pointer is not dereferenced. Clang identifies this for Mac OS.

This addresses #32

Adding an offset to a null pointer is undefined behavior
even if the pointer is not dereferenced. Clang identifies
this for Mac OS.
@DavidLeeds DavidLeeds self-assigned this Jan 11, 2026
@DavidLeeds DavidLeeds added the bug label Jan 11, 2026
@DavidLeeds DavidLeeds merged commit b947a3c into master Jan 11, 2026
4 checks passed
@DavidLeeds DavidLeeds deleted the leeds/nullptr-math-fix branch January 11, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant