(svn r22875) -Codechange: Add some asserts and checks to better prevent overflow of the argument to malloc. (monoid)
This commit is contained in:
@@ -63,6 +63,10 @@
|
||||
#include <climits>
|
||||
#include <cassert>
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ((size_t)-1)
|
||||
#endif
|
||||
|
||||
#if defined(UNIX) || defined(__MINGW32__)
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user