095e05e927
Make Memory use a recursive mutex.
...
This allows some additional operations to be performed inside the memory
hooks, although it's still a bad idea to allocate or free memory while
inside the hook.
2023-06-04 18:44:37 +00:00
faaa12c51f
Re-add memory bounds checking.
...
Also fixed a recursive lock error in some configurations, and replaced
a usage of strcpy() with strncpy().
2023-05-29 23:53:17 +00:00
42526c95bb
Remove memory bound checking logic.
...
While this was nifty and impressive, it seems like it is too easy to mess
up, and is too platform-specific.
2023-05-26 23:10:00 +00:00
34f33a1c1b
Fix SIGBUS on some platforms. Memory alignment matters!
...
This is a temporary fix; I'm not convinced it will work on all platforms,
so I will probably end up removing all of the memory boundary code
altogether.
2023-05-26 23:05:35 +00:00
e87a0647e0
Fix incorrect block size.
2023-05-25 00:03:17 +00:00
2693b89598
Add sane default memory hook to Cytoplasm, fix more leaks in json.
2023-05-23 22:43:37 +00:00
e71ffec164
Add some basic heap memory bounds protection.
2023-05-21 13:24:00 +00:00
5c8a42117c
Import new Cytoplasm library based off of code from Telodendria.
...
Telodendria doesn't use this library yet, but it will soon.
2023-05-13 17:30:09 +00:00