Merge pull request #1447 from slackhq/master

Protect against malformed frame
This commit is contained in:
Olivier Poitrey 2016-01-30 02:54:23 +01:00
commit e41af47e2f
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@
for (size_t i = 0; i < count; i++) {
CGImageRef image = CGImageSourceCreateImageAtIndex(source, i, NULL);
if (!image) {
continue;
}
duration += [self sd_frameDurationAtIndex:i source:source];