From: Tim Kientzle Date: Thu, 19 Nov 2009 07:18:09 +0000 (-0500) Subject: Use the standard abort() function to terminate the program if there's X-Git-Tag: v2.8.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2fb509e3dde46859325ac809924b51041fe490;p=thirdparty%2Flibarchive.git Use the standard abort() function to terminate the program if there's a fatal API violation by a libarchive client. SVN-Revision: 1675 --- diff --git a/libarchive/archive_check_magic.c b/libarchive/archive_check_magic.c index 1d4c3a6e3..3bc095c81 100644 --- a/libarchive/archive_check_magic.c +++ b/libarchive/archive_check_magic.c @@ -69,8 +69,7 @@ diediedie(void) /* Cause a breakpoint exception */ DebugBreak(); #endif - *(char *)0 = 1; /* Deliberately segfault and force a coredump. */ - _exit(1); /* If that didn't work, just exit with an error. */ + abort(); /* Terminate the program abnormally. */ } static const char *