Commit Graph

202 Commits

Author SHA1 Message Date
Antony Dovgal
d547768308 fix folding and ws 2007-07-10 14:42:43 +00:00
Antony Dovgal
13352e80e1 use unsigned modifiers 2007-05-28 10:07:35 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Dmitry Stogov
91853fe83f Fixed 64-bit support 2007-04-09 15:30:37 +00:00
Dmitry Stogov
23fc1f0e42 Fixed bug #40883 (mysql_query() is allocating memory incorrectly). (Tony) 2007-03-23 07:59:54 +00:00
Dmitry Stogov
3e7c4195e3 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:47:12 +00:00
Antony Dovgal
e23af20804 fix #40800 (cannot disable memory_limit with -1) 2007-03-14 11:57:16 +00:00
Dmitry Stogov
5a4f3bcd37 Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 17:00:07 +00:00
Antony Dovgal
def247344d declare zend_mm_random() only when needed 2007-03-06 20:58:40 +00:00
Antony Dovgal
d315853532 fix heap protection on SPARC, required by GCC4
patch by Dmitry
2007-02-19 18:29:20 +00:00
Antony Dovgal
e10a7a734e typo in Dmitry's last name =) 2007-02-16 23:49:34 +00:00
Stanislav Malyshev
aa827cf2b9 add safe_realloc 2007-02-16 18:12:34 +00:00
Dmitry Stogov
09de519e79 Enable canary protection in DEBUG mode only. 2007-02-01 15:12:07 +00:00
Dmitry Stogov
158ec65ba2 Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of signed integer) 2007-01-09 15:29:29 +00:00
Sara Golemon
6f234cbf6f Fix prior commit noticing this time that persistent allocators start with zend_*() and that one already exists 2007-01-07 05:45:07 +00:00
Sara Golemon
97ee887a13 Flesh out some missing API calls 2007-01-07 05:24:55 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Dmitry Stogov
cd07310423 Fixed possible size_t overflow 2006-12-25 12:16:49 +00:00
Marcus Boerger
9103d6b5fe - Implement ezstrndup() 2006-12-22 00:56:59 +00:00
Marcus Boerger
bc1b8f0ab1 - Use conversion macro 2006-12-22 00:28:20 +00:00
Marcus Boerger
71a73834f4 - Make shorter and do not use problematic attribute 2006-12-20 20:59:18 +00:00
Marcus Boerger
2f7e1b8ef3 - Compilers mightnot like the zstr return,thus return void* 2006-12-20 20:49:01 +00:00
Andrei Zmievski
57e7e4921f Fix warning. 2006-12-20 20:42:50 +00:00
Marcus Boerger
89496ce1e6 - Implement zend_zstrndup() 2006-12-20 20:12:11 +00:00
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Dmitry Stogov
4d7652abef Fixed random generation of cookies and canaries 2006-12-18 11:39:34 +00:00
Andrei Zmievski
03547341ec __builtin_expect() exists only in GCC 3.0 and higher. 2006-12-15 22:47:09 +00:00
Andi Gutmans
76b38dc441 - MF 5.2 (put cookie in first place) 2006-12-15 17:17:57 +00:00
Dmitry Stogov
03ffc4de4e Added internal heap protection
. safe unlinking
  . cookies
  . canary protection (debug build only)
2006-12-15 13:25:47 +00:00
Dmitry Stogov
595c45e532 Fixed possible failure 2006-12-08 12:47:58 +00:00
Dmitry Stogov
f595859918 Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi) 2006-12-04 16:30:59 +00:00
Dmitry Stogov
ef3df1e6ff Bug #39438 (Fatal error: Out of memory) 2006-12-01 20:02:00 +00:00
Dmitry Stogov
5b5b730c4c typo 2006-12-01 19:42:19 +00:00
Dmitry Stogov
fa6ab159a6 Fixed bug #39702 (php crashes in the allocator on linux-m68k) 2006-12-01 15:33:20 +00:00
Dmitry Stogov
106c808d41 Fixed bug #39640 (Segfault with "Allowed memory size exhausted") 2006-12-01 13:54:49 +00:00
Dmitry Stogov
d935b44364 Fixed bug #39652 (Wrong negative results from memeory_get_usage()) 2006-12-01 11:40:23 +00:00
Dmitry Stogov
a44849cf0e Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE). (wharmby at uk dot ibm dot com) 2006-11-23 09:33:01 +00:00
Dmitry Stogov
eae5ec4197 Fixed incorrect heap corruptiuon detection code 2006-11-13 10:28:57 +00:00
Dmitry Stogov
df34e766b6 Zend Memory Manager Improvements
. use HeapAlloc() instead of VirtualAlloc()
. use "win32" storage manager (instead of "malloc") on Windows by default
2006-11-10 10:44:16 +00:00
Dmitry Stogov
b907cd59d5 Make zend_memory_peak_usage() to be avalable even without --enable-memory-limit 2006-10-12 06:47:04 +00:00
Ilia Alshanetsky
13a9ddb973 MFB: Added safety checks against integer overflow. 2006-09-30 17:17:31 +00:00
Dmitry Stogov
1f12ada0f7 Added is_zend_mm() to allow runtime check for zend memory manager 2006-09-14 08:55:17 +00:00
Dmitry Stogov
447cc0eb15 Show name of storage layer in case of initialization fault 2006-08-31 13:00:12 +00:00
Antony Dovgal
cb415ed1bf s/pinter/pointer/ 2006-08-30 22:29:17 +00:00
Dmitry Stogov
aaa3ecee8a Fixed bug #38265 (heap corruption) 2006-08-23 13:01:04 +00:00
Dmitry Stogov
b590503bdf Fixed "win32" storage manager 2006-08-22 05:54:35 +00:00
Dmitry Stogov
e8a718a5c0 Fixed crash of DEBUG version on SPARC CPU because of unaligned pointers. 2006-07-26 08:08:31 +00:00
Dmitry Stogov
61d39cf1c1 Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system. 2006-07-25 13:41:08 +00:00
Dmitry Stogov
a1c0009d14 Fixed memory leaks detection 2006-07-24 08:15:42 +00:00
Antony Dovgal
4509fb33c5 fix build on platforms without mremap() 2006-07-18 15:41:47 +00:00