mirror of
https://github.com/svga/SVGAPlayer-iOS.git
synced 2025-10-21 07:29:14 +08:00
FIX : crash in SVGAParser
This commit is contained in:
@@ -184,6 +184,9 @@ static NSOperationQueue *unzipQueue;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!data || data.length < 5) {
|
||||
return;
|
||||
}
|
||||
NSData *tag = [data subdataWithRange:NSMakeRange(0, 4)];
|
||||
if (![[tag description] isEqualToString:@"<504b0304>"]) {
|
||||
// Maybe is SVGA 2.0.0
|
||||
|
Reference in New Issue
Block a user