Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncaught 'index out of range' error in hub/hub.go (bootstrap() function) #38

Open
ring0-rootkit opened this issue Jan 30, 2025 · 1 comment

Comments

@ring0-rootkit
Copy link

Issue:
In case when length of oneBlocksAboveLibRef array is 0, index out of range is emitted in:

if !h.forkable.Linkable(oneBlocksAboveLibRef[len(oneBlocksAboveLibRef)-1]) {

Solution:
Add length check for oneBlocksAboveLibRef and return error instead of panicking.

ring0-rootkit added a commit to BCH-labs/bstream that referenced this issue Jan 30, 2025
@ring0-rootkit
Copy link
Author

Image

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

No branches or pull requests

1 participant