Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed buffer overflow.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/filesystem/cocoa/SDL_sysfilesystem.m
|
@@ -77,7 +77,7 @@ |
|
|
NSString *str = [array objectAtIndex:0]; |
|
|
const char *base = [str fileSystemRepresentation]; |
|
|
if (base) { |
|
|
const size_t len = SDL_strlen(base) + SDL_strlen(app) + 4; |
|
|
const size_t len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4; |
|
|
retval = (char *) SDL_malloc(len); |
|
|
if (retval == NULL) { |
|
|
SDL_OutOfMemory(); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.