Fix dlmalloc horror bug - mman_map overwrites application code
This commit is contained in:
@ -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_
|
||||
|
Reference in New Issue
Block a user