diff options
author | Sverker Eriksson <[email protected]> | 2014-06-27 20:13:46 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-06-27 20:13:46 +0200 |
commit | 1d583e08cd5235881ede6f92800c25ddee13056f (patch) | |
tree | 0650ef7818f46ef739e671f28fc1e9468881ee5a /erts/emulator/beam/sys.h | |
parent | 461dc05384eece7b4b7d84370fb0a2cf96ed2f6d (diff) | |
download | otp-1d583e08cd5235881ede6f92800c25ddee13056f.tar.gz otp-1d583e08cd5235881ede6f92800c25ddee13056f.tar.bz2 otp-1d583e08cd5235881ede6f92800c25ddee13056f.zip |
erts: Fix size overflow bugs in memory allocation
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 05f07e57b2..3d8dd9c6d0 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -274,6 +274,7 @@ __decl_noreturn void __noreturn erl_assert_error(const char* expr, const char *f typedef unsigned int Eterm; typedef unsigned int Uint; typedef int Sint; +#define ERTS_UINT_MAX UINT_MAX #define ERTS_SIZEOF_ETERM SIZEOF_INT #define ErtsStrToSint strtol #else @@ -347,6 +348,7 @@ typedef long long Sint; typedef Uint UWord; typedef Sint SWord; +#define ERTS_UINT_MAX ERTS_UWORD_MAX #endif /* HALFWORD_HEAP */ |