mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
#1186: crash by maliciously-crafted .torrent files w/piece length of zero
This commit is contained in:
parent
d521734c8d
commit
dd51caee94
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ tr_metainfoParse( const tr_handle * handle,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if( !inf->fileCount || !inf->totalSize )
|
||||
if( !inf->fileCount || !inf->totalSize || !inf->pieceSize )
|
||||
{
|
||||
tr_nerr( inf->name, _( "Torrent is corrupt" ) ); /* the content is missing! */
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in a new issue