Skip to content

bugfix(hashtable): Prevent out-of-bounds write during resize free list initialization#474

Merged
x64-dev merged 1 commit into
mainfrom
seer/bugfix/hashtable-freelist-oob
May 7, 2026
Merged

bugfix(hashtable): Prevent out-of-bounds write during resize free list initialization#474
x64-dev merged 1 commit into
mainfrom
seer/bugfix/hashtable-freelist-oob

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-4E1. The issue was that: Concurrent HashTemplateClass::Re_Hash calls on a shared static hash table cause an access violation due to memory being freed while still in use.

  • Added a conditional check to ensure new_table[new_size-1].Next is only set to NIL if cnt is less than new_size.
  • This prevents a potential out-of-bounds write when new_size is 0.
  • Avoids unnecessary modification when the free list is not being extended (i.e., cnt == new_size).

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 13591233

Not quite right? Click here to continue debugging with Seer.

@x64-dev x64-dev merged commit ee7f8d9 into main May 7, 2026
5 checks passed
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.

1 participant