1
0
Fork 0

use null ptr to generate coredump

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1181 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent 5531e5742b
commit 5bdf13dcdf

@ -348,6 +348,8 @@ PHP_FUNCTION(xcache_get_type)
PHP_FUNCTION(xcache_coredump)
{
if (xc_test) {
char *null_ptr = NULL;
*null_ptr = 0;
raise(SIGSEGV);
}
else {

Loading…
Cancel
Save