Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit how much of seeder response may be decoded
A limit of 4096 bytes is imposed on the response body, of which the first 16 results must fit. This leaves room to add more fields to the seeder response objects without being too large, while limiting attacks from malicious seeders that send non-terminating json object. While here, improve the log messages to report which seeder any errors occurred for.
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters