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

panic with SizeUnknown used for creating a byte array #185

Open
adschwartz opened this issue Apr 26, 2024 · 0 comments
Open

panic with SizeUnknown used for creating a byte array #185

adschwartz opened this issue Apr 26, 2024 · 0 comments

Comments

@adschwartz
Copy link

adschwartz commented Apr 26, 2024

Running ebml-go I get this error:

panic: runtime error: makeslice: len out of range

This panic happens when the byte array is created here: https://github.com/at-wat/ebml-go/blob/master/value.go#L207

Looks the issue is related to this area of the code: https://github.com/at-wat/ebml-go/blob/master/value.go#L73

SizeUnknown is set to a large number 0xffffffffffffff that causes panic under certain conditions. I'm running this on mac os darwin which can potentially play a role. I wonder if a smaller number might be more reasonable.

	SizeUnknown = 0xffffffffffffff

SizeUnknown = 0xffffffffffffff

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