From 271750129cd43b067999ed0fd2db14e16babf83e Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 31 Jul 2015 12:25:33 -0300 Subject: [PATCH] Fix new possible crash in GifDecoder::getFrameColormap() --- src/app/file/gif_format.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/file/gif_format.cpp b/src/app/file/gif_format.cpp index f0026d423..99b9afdfa 100644 --- a/src/app/file/gif_format.cpp +++ b/src/app/file/gif_format.cpp @@ -374,8 +374,8 @@ private: // Doesn't have local map, use the global one colormap = global; } - else if (!m_hasLocalColormaps) { - if (!global || global->ColorCount != colormap->ColorCount) + else if (global && !m_hasLocalColormaps) { + if (global->ColorCount != colormap->ColorCount) m_hasLocalColormaps = true; else { for (int i=0; iColorCount; ++i) {