Skip to content

Commit

Permalink
Merge the fix for the case h002 of #76, reported by @hongxuchen
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Dec 14, 2019
2 parents 0887007 + 572e44a commit c9363cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stb_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -5569,6 +5569,7 @@ static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req
// OK, if I need to read a pixel, do it now
if ( read_next_pixel )
{
if (stbi__at_eof(s)) return stbi__errpuc("bad file","TGA file too short");
// load however much data we did have
if ( tga_indexed )
{
Expand Down

0 comments on commit c9363cd

Please sign in to comment.