Skip to content

[Bugfix] whitelist bounds checks#1087

Merged
h2zero merged 1 commit intoh2zero:masterfrom
doudar:master
Mar 14, 2026
Merged

[Bugfix] whitelist bounds checks#1087
h2zero merged 1 commit intoh2zero:masterfrom
doudar:master

Conversation

@doudar
Copy link
Contributor

@doudar doudar commented Feb 12, 2026

Corrected the boundary check in getWhiteListAddress from index > m_whiteList.size() to index >= m_whiteList.size(), fixing an off-by-one error when accessing whitelist entries.

@doudar
Copy link
Contributor Author

doudar commented Feb 14, 2026

@copilot , I’m not sure it’s possible, but try to make @h2zero happy by addressing his comments.

Co-authored-by: doudar <17362216+doudar@users.noreply.github.com>
@h2zero h2zero changed the title Safer and more efficient handling of the internal whitelist [Bugfix] whitelist bounds checks Mar 14, 2026
@h2zero
Copy link
Owner

h2zero commented Mar 14, 2026

LGTM, thanks!

@h2zero h2zero merged commit cc47671 into h2zero:master Mar 14, 2026
41 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.

3 participants