From 2f0ec0922dfc0967c68509733aacbe6ad9eb8d0a Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 23 Apr 2019 21:31:06 +0900 Subject: [PATCH] evas wbmp: remove unnecessary size overflow. since this patch 68fe9ec6bf60b4730ad7fdbf2698dc7aa130b94d it checks size validation earlier, this varification doesn't need anymore... Change-Id: I395f664efebf6c0ccaaea1b5cd7882917ab276f5 --- src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c b/src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c index 00e67f3..7f56da6 100644 --- a/src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c +++ b/src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c @@ -163,7 +163,6 @@ evas_image_load_file_data_wbmp(void *loader_data, for (y = 0; y < (int)prop->h; y++) { - if (position + line_length > length) goto bail; line = ((unsigned char*) map) + position; position += line_length; for (x = 0; x < (int)prop->w; x++) -- 2.7.4