fix pixel buffer overflow on loading corrupt/malformed/bad xpm's

SVN revision: 26098
This commit is contained in:
Carsten Haitzler 2006-09-24 13:28:01 +00:00
parent 7b9f59d959
commit fc717d365f
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ evas_image_load_file_xpm(RGBA_Image *im, const char *file, const char *key, int
return 0;
}
ptr = im->image->data;
end = ptr + (sizeof(DATA32) * w * h);
end = ptr + (w * h);
pixels = w * h;
}
else