Commit Graph

190 Commits

Author SHA1 Message Date
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
Dmitry Stogov
6687f0377b New memory manager 2006-07-18 09:08:06 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Dmitry Stogov
b424a32610 Preparation for portable string API (use macroses to access zval). 2006-02-20 19:03:43 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
foobar
eccf9c7abf - Include timestamp for the leaks. (to make possible matching leaks with access_log entries) 2005-12-12 11:00:18 +00:00
Ilia Alshanetsky
6ebfbd15d5 Fixed bug #34156 (memory usage remains elevated after memory limit is reached) 2005-08-18 15:02:10 +00:00
Andrei Zmievski
b80cb7bd2f Unicode support 2005-08-11 23:35:03 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
foobar
355eefe5f9 - Nuke the code duplication 2005-04-07 20:15:21 +00:00
Zeev Suraski
779f5c5c19 Fix strdup() bug when USE_ZEND_ALLOC is disabled 2005-04-07 13:59:45 +00:00
Andi Gutmans
ec3aac1e86 - Fix leak report for 0 byte allocations (Dmitry) 2004-08-27 16:49:14 +00:00