|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-18 16:49 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 13:00:02 2025 UTC |
Description: ------------ chunk_split() segfaults when chunklen is too big (possible dos?) Reproduce code: --------------- <?php chunk_split(".", 1000000000); ?> Expected result: ---------------- ehrrm... ;-) Actual result: -------------- (gdb) bt #0 0xb7d79cef in memcpy () from /lib/tls/libc.so.6 #1 0x080e6c21 in php_chunk_split (src=0x81f4afc "", srclen=1, end=0x8180d20 "\r\n", endlen=2, chunklen=1000000000, destlen=0xbfffd544) at /home/moonky/src/php-4.3.9/ext/standard/string.c:1521 #2 0x080e6f98 in zif_chunk_split (ht=2, return_value=0x81ef874, this_ptr=0x0, return_value_used=0) at /home/moonky/src/php-4.3.9/ext/standard/string.c:1582 [...]