Browse Source

use null ptr to generate coredump

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1181 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
5bdf13dcdf
  1. 2
      xcache.c

2
xcache.c

@ -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