Skip to content

Rework hash-table enumeration. - #434

Merged
davidchisnall merged 1 commit into
masterfrom
hash-table-enumeration
Oct 18, 2026
Merged

davidchisnall merged 1 commit into
masterfrom
hash-table-enumeration

Conversation

@davidchisnall

Copy link
Copy Markdown
Member

This is mostly motivated by the use-after-free reported in #433 but that follows an observation that there's really no need to be doing a heap allocation on this path at all. Removing it eliminates the possibility of a use-after-free issue and also makes the code marginally faster.

Fixes #433

This is mostly motivated by the use-after-free reported in #433 but that
follows an observation that there's really no need to be doing a heap
allocation on this path *at all*.  Removing it eliminates the
possibility of a use-after-free issue and also makes the code marginally
faster.

Fixes #433
@davidchisnall
davidchisnall merged commit a6b499f into master Oct 18, 2026
91 checks passed
@davidchisnall
davidchisnall deleted the hash-table-enumeration branch October 18, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

objc_getClassList() double-frees its enumerator when the buffer is larger than the class count

1 participant