Skip to content

Tame UBsan applying zero offset to null pointer#1432

Merged
saghul merged 1 commit intomasterfrom
tame-ubsan
Mar 31, 2026
Merged

Tame UBsan applying zero offset to null pointer#1432
saghul merged 1 commit intomasterfrom
tame-ubsan

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Mar 30, 2026

It was possible, through different code paths to end up with an AB with
a NULL data pointer or with a small 1 byte allocation.

Normalize the logic so we don't allocate anything for a zero sized AB.

It was possible, through different code paths to end up with an AB with
a NULL data pointer or with a small 1 byte allocation.

Normalize the logic so we don't allocate anything for a zero sized AB.
@saghul saghul merged commit 6734b76 into master Mar 31, 2026
122 checks passed
@saghul saghul deleted the tame-ubsan branch March 31, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants