32322450 Security Vulnerability - heap buffer overflow in libgiftranscode.so am: bcc1f62715
am: 5311a02e27
Change-Id: I2afadd0fe76f451304f4aa6d7f6a9b0c35dfaf54
This commit is contained in:
@@ -274,6 +274,11 @@ bool GifTranscoder::resizeBoxFilter(GifFileType* gifIn, GifFileType* gifOut) {
|
||||
// matches what libframesequence (Rastermill) does.
|
||||
if (imageIndex == 0 && gifIn->SColorMap) {
|
||||
if (gcb.TransparentColor == NO_TRANSPARENT_COLOR) {
|
||||
if (gifIn->SBackGroundColor < 0 ||
|
||||
gifIn->SBackGroundColor >= gifIn->SColorMap->ColorCount) {
|
||||
LOGE("SBackGroundColor overflow");
|
||||
return false;
|
||||
}
|
||||
GifColorType bgColorIndex =
|
||||
gifIn->SColorMap->Colors[gifIn->SBackGroundColor];
|
||||
bgColor = gifColorToColorARGB(bgColorIndex);
|
||||
|
||||
Reference in New Issue
Block a user