evas wbmp: remove unnecessary size overflow. 09/204409/2
authorHermet Park <hermetpark@gmail.com>
Tue, 23 Apr 2019 12:31:06 +0000 (21:31 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 23 Apr 2019 12:43:31 +0000 (12:43 +0000)
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

index 00e67f3..7f56da6 100644 (file)
@@ -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++)