From dcd1beae8ab9e8d7ba04b921f3ccf00e7f820a35 Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Tue, 21 Apr 2026 13:57:20 +0200 Subject: [PATCH] Fixed potential crash on non-windows when using evstring_readFile --- ev_helpers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ev_helpers.h b/ev_helpers.h index 9298f48..773a1ed 100644 --- a/ev_helpers.h +++ b/ev_helpers.h @@ -33,6 +33,7 @@ evstring_readFile( if(fopen_s(&f,filePath,"rb")) return EV_INVALID(evstring); #else f = fopen(filePath, "rb"); + if(f == NULL) return EV_INVALID(evstring); #endif fseek(f, 0, SEEK_END);