Changeset 6503


Ignore:
Timestamp:
Aug 13, 2008, 2:19:26 PM (13 years ago)
Author:
charles
Message:

(1.3x) crash by maliciously-crafted .torrent files w/piece length of zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/libtransmission/metainfo.c

    r6354 r6503  
    412412    }
    413413
    414     if( !inf->fileCount || !inf->totalSize )
     414    if( !inf->fileCount || !inf->totalSize || !inf->pieceSize )
    415415    {
    416416        tr_nerr( inf->name, _( "Torrent is corrupt" ) ); /* the content is missing! */
Note: See TracChangeset for help on using the changeset viewer.