|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2013-08-30 05:59 UTC] remi@php.net
  [2013-08-30 06:01 UTC] remi@php.net
 
-Package: Reproducible crash
+Package: Date/time related
  [2013-08-30 06:01 UTC] remi@php.net
  [2013-08-30 07:49 UTC] remi@php.net
 
-Status:      Open
+Status:      Assigned
-Assigned To:
+Assigned To: remi
  [2013-08-30 07:49 UTC] remi@php.net
  [2013-08-30 08:46 UTC] remi@php.net
  [2013-08-30 08:46 UTC] remi@php.net
 
-Status: Assigned
+Status: Closed
  [2013-08-30 08:46 UTC] remi@php.net
  [2013-11-17 09:30 UTC] laruence@php.net
  [2014-08-22 07:07 UTC] ab@php.net
  [2014-08-22 07:07 UTC] ab@php.net
  [2014-10-07 23:17 UTC] stas@php.net
  [2014-10-07 23:28 UTC] stas@php.net
  [2016-07-20 11:41 UTC] davey@php.net
  [2016-07-20 11:41 UTC] davey@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 10:00:02 2025 UTC | 
Description: ------------ Summary : stack-buffer-overflow exists in DateTimeZone stuff which was caught by AddressSanitizer. I am using Fedora 19's GCC which supports AddressSanitizer. 1. Download and extract php-5.5.3.tar.xz 2. Configure build flags, export CFLAGS="-fsanitize=address -O2 -ggdb" export LDFLAGS="-fsanitize=address" 3. Build PHP as usual using "make". 4. Running ./sapi/cli/php ext/date/tests/DateTimeZone_clone_basic1.php crashes with, *** Testing clone on DateTime objects *** ================================================================= ==4551== ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff0209a9d7 ... READ of size 1 at 0x7fff0209a9d7 thread T0 #0 0xba7a1d in _zend_hash_add_or_update /scratch/php-5.5.3/Zend/zend_hash.c:261 #1 0x43bcb8 in date_object_get_properties_timezone /scratch/php-5.5.3/ext/date/php_date.c:2308 #2 0x9d8594 in php_var_dump /scratch/php-5.5.3/ext/standard/var.c:129 (discriminator 1) #3 0x9d8f1b in zif_var_dump /scratch/php-5.5.3/ext/standard/var.c:183 (discriminator 2) #4 0xdf048c in zend_do_fcall_common_helper_SPEC /scratch/php-5.5.3/Zend/zend_vm_execute.h:543 #5 0xc01a9f in execute_ex /scratch/php-5.5.3/Zend/zend_vm_execute.h:356 #6 0xb8394e in zend_execute_scripts /scratch/php-5.5.3/Zend/zend.c:1316 #7 0xa5b2d4 in php_execute_script /scratch/php-5.5.3/main/main.c:2484 #8 0xdf4ff1 in do_cli /scratch/php-5.5.3/sapi/cli/php_cli.c:994 #9 0x434deb in main /scratch/php-5.5.3/sapi/cli/php_cli.c:1378 #10 0x386b021b74 in ?? ??:0 #11 0x435388 in _start ??:? Test script: --------------- $ ./sapi/cli/php ext/date/tests/DateTimeZone_clone_basic1.php