(svn r22875) -Codechange: Add some asserts and checks to better prevent overflow of the argument to malloc. (monoid)

This commit is contained in:
michi_cc
2011-09-02 20:54:51 +00:00
parent 65637d8941
commit f227e90c24
6 changed files with 22 additions and 1 deletions

View File

@@ -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