subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1718850 - /subversion/branches/ra-git/subversion/libsvn_subr/cmdline.c
Date Wed, 09 Dec 2015 13:17:20 GMT
Author: rhuijben
Date: Wed Dec  9 13:17:20 2015
New Revision: 1718850

URL: http://svn.apache.org/viewvc?rev=1718850&view=rev
Log:
* subversion/libsvn_subr/cmdline.c
  (svn_cmdline_init): Request 4 KB of stack for exception filter.

Modified:
    subversion/branches/ra-git/subversion/libsvn_subr/cmdline.c

Modified: subversion/branches/ra-git/subversion/libsvn_subr/cmdline.c
URL: http://svn.apache.org/viewvc/subversion/branches/ra-git/subversion/libsvn_subr/cmdline.c?rev=1718850&r1=1718849&r2=1718850&view=diff
==============================================================================
--- subversion/branches/ra-git/subversion/libsvn_subr/cmdline.c (original)
+++ subversion/branches/ra-git/subversion/libsvn_subr/cmdline.c Wed Dec  9 13:17:20 2015
@@ -149,9 +149,13 @@ svn_cmdline_init(const char *progname, F
 #ifdef SVN_USE_WIN32_CRASHHANDLER
   if (!getenv("SVN_CMDLINE_DISABLE_CRASH_HANDLER"))
     {
+      ULONG stackGuarantee = 4096;
       /* Attach (but don't load) the crash handler */
       SetUnhandledExceptionFilter(svn__unhandled_exception_filter);
 
+      /* Guarantee 4 KB of stack in exception filter (for stack overflow) */
+      SetThreadStackGuarantee(&stackGuarantee); 
+
 #if _MSC_VER >= 1400
       /* ### This should work for VC++ 2002 (=1300) and later */
       /* Show the abort message on STDERR instead of a dialog to allow



Mime
View raw message