[gimp] file-gif-load: Fail early if GetCode() fails (Bug #737375)
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-gif-load: Fail early if GetCode() fails (Bug #737375)
- Date: Thu, 25 Sep 2014 17:19:10 +0000 (UTC)
commit 55150487ff9ed53ecb90ae4fca3d615e24057fae
Author: Mukund Sivaraman <muks banu com>
Date: Thu Sep 25 22:48:33 2014 +0530
file-gif-load: Fail early if GetCode() fails (Bug #737375)
plug-ins/common/file-gif-load.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-gif-load.c b/plug-ins/common/file-gif-load.c
index 084ad27..b07a20a 100644
--- a/plug-ins/common/file-gif-load.c
+++ b/plug-ins/common/file-gif-load.c
@@ -746,7 +746,10 @@ LZWReadByte (FILE *fd,
max_code_size = 2 * clear_code;
max_code = clear_code + 2;
- GetCode (fd, 0, TRUE);
+ if (GetCode (fd, 0, TRUE) < 0)
+ {
+ return -1;
+ }
fresh = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]