From bae8e45787d1ec2b90a69544ec9462420e9d8ee7 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 25 Feb 2023 17:51:10 +0300
Subject: [PATCH] stb_image.h: NULL ptr dereference fix by Neil Bickford from
mainstream:
Mainstream pull requests:
https://github.com/nothings/stb/pull/1454
Related mainstream issue tickets:
https://github.com/nothings/stb/issues/1452
---
stb_image.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stb_image.h b/stb_image.h
index a7a73192..02c1c710 100644
--- a/stb_image.h
+++ b/stb_image.h
@@ -6614,7 +6614,7 @@ static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_c
if (!stbi__pic_load_core(s,x,y,comp, result)) {
STBI_FREE(result);
- result=0;
+ return 0;
}
*px = x;
*py = y;