History log of /PHP-8.4/Zend/zend_alloc.c (Results 126 – 150 of 496)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: php-7.1.0RC3, php-5.6.27RC1, php-7.0.12RC1, php-5.6.26, php-7.1.0RC2, php-7.0.11
# 19866fb7 02-Sep-2016 Stanislav Malyshev

Fix various int size overflows.

Add function for detection of string zvals with length that does not fit
INT_MAX.


# 5880428d 07-Sep-2016 Christoph M. Becker

Fix potential memory issue with USE_ZEND_ALLOC=0

The PHP core and extensions are written with the assumption that memory
allocation either succeeds, or the allocator bails out (i.e. the

Fix potential memory issue with USE_ZEND_ALLOC=0

The PHP core and extensions are written with the assumption that memory
allocation either succeeds, or the allocator bails out (i.e. the allocator
is infallible). Therefore the result of emalloc() and friends are not checked
for NULL values.

However, with USE_ZEND_ALLOC=0, malloc() and friends are used as allocators,
but these are fallible, i.e. they return NULL instead of bailing out if they
fail. This easily leads to invalid memory accesses in the following, such as
in <https://bugs.php.net/73032>. Some of these cases may constitute
exploitable vulnerabilities.

Therefore we make the infallible __zend_alloc() and friends the default for
USE_ZEND_ALLOC=0.

show more ...


Revision tags: php-5.6.26RC1, php-7.1.0RC1, php-7.0.11RC1, php-7.1.0beta3, php-5.6.25, php-7.0.10
# c2a13ced 15-Aug-2016 Stanislav Malyshev

Fix bug #72742 - memory allocator fails to realloc small block to large one


Revision tags: php-7.1.0beta2, php-5.6.25RC1, php-7.0.10RC1, php-7.1.0beta1, php-5.6.24, php-7.0.9, php-5.5.38, php-5.6.24RC1, php-7.1.0alpha3, php-7.0.9RC1
# 0cfb4765 28-Jun-2016 Dmitry Stogov

Fixed compilation warnings


Revision tags: php-7.1.0alpha2, php-7.0.8
# ebb99a1a 21-Jun-2016 Dmitry Stogov

Fixed compilation warnings


Revision tags: php-5.6.23
# 16160386 21-Jun-2016 Dmitry Stogov

Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.


Revision tags: php-5.5.37, php-5.6.23RC1, php-7.0.8RC1, php-7.1.0alpha1, php-5.6.22, php-5.5.36, php-7.0.7
# 14023d39 17-May-2016 Nikita Popov

Move builtin_ctzl portability into zend_bitset.h

Use this function in both zend_mm_bitset_find_one and
zend_bitset_first.

Maybe zend_bitset.h is not quite the right place for it

Move builtin_ctzl portability into zend_bitset.h

Use this function in both zend_mm_bitset_find_one and
zend_bitset_first.

Maybe zend_bitset.h is not quite the right place for it, but I did
not want to include this in a globally included header like
zend_long.h or zend_portability.h.

show more ...


Revision tags: php-5.6.22RC1, php-7.0.7RC1
# a8d46490 29-Apr-2016 Dmitry Stogov

Use unsigned shift to clear the bit.


Revision tags: php-7.0.6, php-5.6.21, php-5.5.35, php-5.6.21RC1, php-7.0.6RC1, php-5.6.20, php-5.5.34, php-7.0.5
# 06c2b318 22-Mar-2016 Rasmus Lerdorf

Disable huge pages in the Zend allocator by default
As per the discussion on internals, this is an expert feature
that needs special system-level configuration and care.


# 75dd4a7a 17-Mar-2016 Dmitry Stogov

Added ability to disable huge pages in Zend Memeory Manager through the environment variable USE_ZEND_ALLOC_HUGE_PAGES=0.


# 1efcdaf0 22-Mar-2016 Rasmus Lerdorf

Disable huge pages in the Zend allocator by default
As per the discussion on internals, this is an expert feature
that needs special system-level configuration and care.


# 945a6619 17-Mar-2016 Dmitry Stogov

Added ability to disable huge pages in Zend Memeory Manager through the environment variable USE_ZEND_ALLOC_HUGE_PAGES=0.


Revision tags: php-5.6.20RC1, php-7.0.5RC1
# 741bfe39 10-Mar-2016 Anatol Belski

fix build with clang on Winodws


Revision tags: php-5.6.19, php-5.5.33, php-7.0.4
# 0b9c87a0 24-Feb-2016 Dmitry Stogov

Fixed bug #71535 (Integer overflow in zend_mm_alloc_heap())


Revision tags: php-5.6.19RC1, php-7.0.4RC1, php-5.6.18, php-7.0.3, php-5.5.32, php-5.6.18RC1, php-7.0.3RC1, php-5.6.17, php-5.5.31, php-7.0.2
# 97a9470d 02-Jan-2016 Xinchen Hui

bump year which is missed in rev 49493a2


# 3537e95d 02-Jan-2016 Xinchen Hui

bump year which is missed in rev 49493a2


Revision tags: php-7.0.2RC1, php-5.6.17RC1, php-7.0.1RC1
# 59424bb7 03-Dec-2015 Dmitry Stogov

Fixed bug #71006 (symbol referencing errors on Sparc/Solaris)


Revision tags: php-7.0.0, php-5.6.16, php-7.0.0RC8, php-7.0.0RC7, php-5.6.16RC1
# 83de5364 08-Nov-2015 Xinchen Hui

manually apply the typo fix in master


Revision tags: php-5.6.15
# 8e83ea6e 28-Oct-2015 Markus Staab

fixed another comment typo


# 08c97ea0 27-Oct-2015 Markus Staab

fixed typo


# b83782e6 27-Oct-2015 Markus Staab

fixed another comment typo


# 058a7ab5 27-Oct-2015 Markus Staab

fixed typo in comment

introduced in eb32da13cd4f5dd0dae0e07a8f0b6c42d5678f5f


Revision tags: php-7.0.0RC6
# eb32da13 27-Oct-2015 Dmitry Stogov

Fix frequent reallocations with many small strings


Revision tags: php-7.0.1, php-5.6.15RC1, php-7.0.0RC5
# d949c3b6 13-Oct-2015 Dmitry Stogov

Fixed incorrect "peak" memory consumption calculation.


Revision tags: php-5.5.30, php-5.6.14, php-7.0.0RC4
# 04bcce3c 22-Sep-2015 Dmitry Stogov

Cleanup (we keep and reuse size from zend_mm_huge_list)


12345678910>>...20