Skip to content

gh-134587: Suggest fix for tempfile.mkdtemp() in Windows AppContainer #134607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
4 changes: 4 additions & 0 deletions 2025-05-17-16-45-00.gh-issue-134070.vdhoke.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. gh-issue: 134070
.. section: Core and Builtins

Fixed an out-of-bounds read in the generic implementation of `mi_clz32` and `mi_ctz32` in the integrated mimalloc allocator. This bug could occur on platforms with 64-bit `unsigned long` values. Based on upstream fix from microsoft/mimalloc.
2 changes: 1 addition & 1 deletion Lib/tempfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def mkstemp(suffix=None, prefix=None, dir=None, text=False):

return _mkstemp_inner(dir, prefix, suffix, flags, output_type)


# TODO: Suggest AppContainer mkdtemp fix
def mkdtemp(suffix=None, prefix=None, dir=None):
"""User-callable function to create and return a unique temporary
directory. The return value is the pathname of the directory.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. gh-issue: 134070
.. section: Core and Builtins

Fixed an out-of-bounds read in the generic implementation of ``mi_clz32`` and ``mi_ctz32`` in the integrated mimalloc allocator. This bug could occur on platforms with 64-bit ``unsigned long`` values. Based on upstream fix from microsoft/mimalloc.
Loading