This website works better with JavaScript.
Home
Explore
Help
Sign In
modal-studios
/
izanagi-2022
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix heap corruption in malloc
Use SDL's malloc functions in abstractions.
master
TheoryOfNekomata
1 year ago
parent
7fa536895d
commit
8c9e34b691
2 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
src/packages/stdinc/IZ_stdlib.c
+1
-1
src/packages/stdinc/IZ_stdlib.h
+ 3
- 3
src/packages/stdinc/IZ_stdlib.c
View File
@@ -1,13 +1,13 @@
#include "IZ_stdlib.h"
void* IZ_malloc(size_t size) {
return malloc(size);
return
SDL_
malloc(size);
}
void* IZ_calloc(unsigned int count, size_t size) {
return calloc(count, size);
return
SDL_
calloc(count, size);
}
void IZ_free(void* p) {
free(p);
SDL_
free(p);
}
+ 1
- 1
src/packages/stdinc/IZ_stdlib.h
View File
@@ -1,7 +1,7 @@
#ifndef IZ_STDLIB_H
#define IZ_STDLIB_H
#include <
stdlib
.h>
#include <
SDL_stdinc
.h>
void* IZ_malloc(size_t);
void* IZ_calloc(unsigned int, size_t);
Write
Preview
Loading…
Cancel
Save