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

after decoding metainfo: expected EOF #992

Open
monkeyWie opened this issue Dec 26, 2024 · 1 comment
Open

after decoding metainfo: expected EOF #992

monkeyWie opened this issue Dec 26, 2024 · 1 comment

Comments

@monkeyWie
Copy link
Contributor

monkeyWie commented Dec 26, 2024

I found this commit 32c406f9fec12c66bf62c1ad6e0c38be4f425b75 , it cause return error when I called metainfo.LoadFromFile(filename).

But the Metainfo is still returned, can I ignore this particular error? I don't know the purpose of this submit, maybe this is a bug?

@anacrolix
Copy link
Owner

It should be preventing you from reading a torrent file that incorrectly contains trailing data. You can unmarshal the metainfo yourself if you expect to have extra data or don't care about errors.

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

2 participants