Skip to content

Commit

Permalink
Merge pull request #102 from 0xdd96/master
Browse files Browse the repository at this point in the history
fix null pointer dereference in stb_image.h
  • Loading branch information
mbrubeck committed Mar 19, 2023
2 parents 90bce37 + 2432751 commit caf178c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stb_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -5408,7 +5408,7 @@ static stbi_uc *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int re

if (!stbi__pic_load_core(s,x,y,comp, result)) {
STBI_FREE(result);
result=0;
return 0;
}
*px = x;
*py = y;
Expand Down

0 comments on commit caf178c

Please sign in to comment.