Skip to content
Permalink
Browse files
Fixed TALOS-2019-0842 - XCF Image Code Execution Vulnerability
  • Loading branch information
slouken committed Jun 11, 2019
1 parent b45dfa8 commit 0c1db6f7bcf62feb897bc639976d118d2f3fa51b
Showing with 1 addition and 1 deletion.
  1. +1 −1 IMG_xcf.c
@@ -686,7 +686,7 @@ do_layer_surface(SDL_Surface * surface, SDL_RWops * src, xcf_header * head, xcf_
p16 = (Uint16 *) p8;
p = (Uint32 *) p8;
for (y = ty; y < ty + oy; y++) {
if ((ty >= surface->h) || ((tx+ox) > surface->w)) {
if ((y >= surface->h) || ((tx+ox) > surface->w)) {
break;
}
row = (Uint32 *) ((Uint8 *) surface->pixels + y * surface->pitch + tx * 4);

0 comments on commit 0c1db6f

Please sign in to comment.