Skip to content

core/state: add bounds check in heap eviction loop#33712

Merged
rjl493456442 merged 1 commit intoethereum:masterfrom
Noisyxl:patch-2
Jan 29, 2026
Merged

core/state: add bounds check in heap eviction loop#33712
rjl493456442 merged 1 commit intoethereum:masterfrom
Noisyxl:patch-2

Conversation

@Noisyxl
Copy link
Copy Markdown
Contributor

@Noisyxl Noisyxl commented Jan 29, 2026

core/state: add bounds check in heap eviction loop

Add len(h) > 0 check before accessing h[0] to prevent potential panic and align with existing heap access patterns in txpool, p2p, and mclock packages.

@Noisyxl Noisyxl requested a review from rjl493456442 as a code owner January 29, 2026 11:53
@rjl493456442 rjl493456442 added this to the 1.17.0 milestone Jan 29, 2026
@rjl493456442 rjl493456442 merged commit a179ccf into ethereum:master Jan 29, 2026
7 of 8 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.

2 participants