Fix dlmalloc horror bug - mman_map overwrites application code

This commit is contained in:
2025-09-14 19:07:00 +02:00
parent e6891b39cc
commit 26ff717b50
18 changed files with 197 additions and 137 deletions

View File

@ -16,4 +16,22 @@ enum {
E_INVALIDOPER = -11,
};
static const char *_ERROR_STRINGS[] = {
"OK",
"Out of memory",
"Unknown filesystem type",
"No entry",
"Out of bounds access",
"Unknown storage device type",
"TODO",
"I/O error",
"System call error",
"Perform scheduling (internal flag)",
"Invalid argument",
"Invalid operation",
};
#define ERRSTRING_INDEX(ioh) ((size_t)((ioh) < 0 ? (ioh) * (-1) : (ioh)))
#define ERRSTRING(ioh) (_ERROR_STRINGS[ERRSTRING_INDEX(ioh)])
#endif // ERRORS_H_