mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Added a guard to the piped unarchiver to fail more gracefully for bad filenames of very short length.
This commit is contained in:
1 parent
898216ac9f
commit
b4c7dbe478
1 file changed
+1
@@ -24,6 +24,7 @@
|
||||
id currentType;
|
||||
while ((currentType = [typeEnumerator nextObject]))
|
||||
{
|
||||
if ([currentType length] > [lastPathComponent length]) continue;
|
||||
if ([[lastPathComponent substringFromIndex:[lastPathComponent length] - [currentType length]] isEqualToString:currentType])
|
||||
return NSSelectorFromString([typeSelectorDictionary objectForKey:currentType]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user