Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed segfault in GIF reading; this fixes #67
  • Loading branch information
Peter Szabo committed Jul 18, 2019
1 parent 287209a commit 1d62cf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cgif.c
Expand Up @@ -1551,7 +1551,8 @@ int CGIFFF DGifSlurp(CGIFFF GifFileType *GifFile)
memcpy(ep->Bytes,ExtData,ep->ByteCount * sizeof(char));
#else
if (ExtData==NULL) break;
AddExtensionBlock(sp, ExtData[0], ExtData+1);
AddExtensionBlock(&ext, ExtData[0], ExtData+1);
ext.ExtensionBlocks[ext.ExtensionBlockCount-1].code=ext_code;
#endif
}
}
Expand Down

0 comments on commit 1d62cf8

Please sign in to comment.