summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-05-05 17:45:35 (GMT)
committerGitHub <noreply@github.com>2020-05-05 17:45:35 (GMT)
commitac4bf424119d1300f57929120968e216a85d3a25 (patch)
tree86940ec570386c442d1864ce1b29bcaeacf92a8a
parent607b1027fec7b4a1602aab7df57795fbcec1c51b (diff)
downloadcpython-ac4bf424119d1300f57929120968e216a85d3a25.zip
cpython-ac4bf424119d1300f57929120968e216a85d3a25.tar.gz
cpython-ac4bf424119d1300f57929120968e216a85d3a25.tar.bz2
bpo-40458: Increase reserved stack space to prevent overflow crash on Windows (GH-19845)
-rw-r--r--Misc/NEWS.d/next/Windows/2020-05-01-20-57-57.bpo-40458.Eb0ueI.rst1
-rw-r--r--PCbuild/python_uwp.vcxproj1
-rw-r--r--PCbuild/pythonw_uwp.vcxproj1
3 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Windows/2020-05-01-20-57-57.bpo-40458.Eb0ueI.rst b/Misc/NEWS.d/next/Windows/2020-05-01-20-57-57.bpo-40458.Eb0ueI.rst
new file mode 100644
index 0000000..4dc1ff4
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2020-05-01-20-57-57.bpo-40458.Eb0ueI.rst
@@ -0,0 +1 @@
+Increase reserved stack space to prevent overflow crash on Windows.
diff --git a/PCbuild/python_uwp.vcxproj b/PCbuild/python_uwp.vcxproj
index 5ff120a..fb27e9e 100644
--- a/PCbuild/python_uwp.vcxproj
+++ b/PCbuild/python_uwp.vcxproj
@@ -95,6 +95,7 @@
<Link>
<AdditionalDependencies>windowsapp.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Console</SubSystem>
+ <StackReserveSize>2000000</StackReserveSize>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="$(Configuration) != 'Debug'">
diff --git a/PCbuild/pythonw_uwp.vcxproj b/PCbuild/pythonw_uwp.vcxproj
index 828d0d1..e21e46a 100644
--- a/PCbuild/pythonw_uwp.vcxproj
+++ b/PCbuild/pythonw_uwp.vcxproj
@@ -95,6 +95,7 @@
<Link>
<AdditionalDependencies>windowsapp.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
+ <StackReserveSize>2000000</StackReserveSize>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="$(Configuration) != 'Debug'">