mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
Check for zero-length torrent name after stripping slashes.
This commit is contained in:
parent
41a81769e3
commit
2e65e41d75
1 changed files with 5 additions and 0 deletions
|
@ -215,6 +215,11 @@ int tr_metainfoParse( tr_info_t * inf, const char * path,
|
|||
goto fail;
|
||||
}
|
||||
strcatUTF8( inf->name, sizeof( inf->name ), val->val.s.s, 1 );
|
||||
if( '\0' == inf->name[0] )
|
||||
{
|
||||
tr_err( "Invalid \"name\" string" );
|
||||
goto fail;
|
||||
}
|
||||
inf->totalSize = 0;
|
||||
|
||||
if( ( list = tr_bencDictFind( beInfo, "files" ) ) )
|
||||
|
|
Loading…
Add table
Reference in a new issue