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

An entry with the same key already exists #33

Closed
ghost opened this issue Feb 25, 2018 · 1 comment
Closed

An entry with the same key already exists #33

ghost opened this issue Feb 25, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 25, 2018

NOTE: I have no idea what's in this torrent or whether it's malicious, it's one from a recent large dump.

This should probably throw an InvalidTorrentException instead. qBittorrent loads it fine fwiw

image

0ad2296131a3e29fb95e365393372c7f506c680a.torrent.gz

@Krusen
Copy link
Owner

Krusen commented Feb 25, 2018

The issue here is the two 123 keys in the info dictionary.

image

This will now throw a InvalidBencodeException<BDictionary> with more detailed exception messages.

Exception message:

Failed to parse BDictionary. Could not parse dictionary value for the key 'info'.
There needs to be a value for each key. The dictionary starts at position 0.

InnerException message:

Failed to parse BDictionary. The dictionary already contains the key '123'.
Duplicate keys are not supported. The dictionary starts at position 608. 

The new version will be available soon.

@Krusen Krusen closed this as completed Feb 25, 2018
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