From 9832a50bb7f1900b7697cc56035bc47b6522bfce Mon Sep 17 00:00:00 2001 From: MegAmi Date: Fri, 1 Dec 2023 16:00:14 -0600 Subject: [PATCH 1/3] what if 2 actually meant 2 [skip ci] --- dependencies/android/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies/android/README.md b/dependencies/android/README.md index 67d8667f..8d44f6a1 100644 --- a/dependencies/android/README.md +++ b/dependencies/android/README.md @@ -1,7 +1,7 @@ # Android ## Install dependencies -* SDL2: [Download the source code](https://github.com/libsdl-org/SDL) and unzip it in `dependencies/android/SDL`. +* SDL2: [Download the source code](https://github.com/libsdl-org/SDL/tree/SDL2) and unzip it in `dependencies/android/SDL`. * GLEW: [Download the binaries](http://glew.sourceforge.net/) and unzip it in `dependencies/android/glew`. From f317c186bcb440e4b460cfb2ca61b9b1ab7010ce Mon Sep 17 00:00:00 2001 From: MegAmi Date: Fri, 29 Dec 2023 12:26:02 -0600 Subject: [PATCH 2/3] Fix fcaseopen.c buffer overflow Should fix #232 --- RSDKv3/fcaseopen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RSDKv3/fcaseopen.c b/RSDKv3/fcaseopen.c index 23fcaa69..0bdefbd8 100644 --- a/RSDKv3/fcaseopen.c +++ b/RSDKv3/fcaseopen.c @@ -30,7 +30,7 @@ THE SOFTWARE. #include #include -// r must have strlen(path) + 2 bytes +// r must have strlen(path) + 3 bytes static int casepath(char const *path, char *r) { size_t l = strlen(path); @@ -101,7 +101,7 @@ FILE *fcaseopen(char const *path, char const *mode) FILE *f = fopen(path, mode); #if !defined(_WIN32) if (!f) { - char *r = (char *)alloca(strlen(path) + 2); + char *r = (char *)alloca(strlen(path) + 3); if (casepath(path, r)) { f = fopen(r, mode); } @@ -113,7 +113,7 @@ FILE *fcaseopen(char const *path, char const *mode) void casechdir(char const *path) { #if !defined(_WIN32) - char *r = (char *)alloca(strlen(path) + 2); + char *r = (char *)alloca(strlen(path) + 3); if (casepath(path, r)) { chdir(r); } From c8bb7574ed4d2e732e0358e7e715d3daf609de2f Mon Sep 17 00:00:00 2001 From: Leonx254 Date: Mon, 8 Jan 2024 20:48:55 -0300 Subject: [PATCH 3/3] initial commit Revert "initial commit" This reverts commit bc18f42c09abd63a570cb27397673c5f2be74128.