Change History (5)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed at commit 2ebf4143a8e1dfac1f4855ae116aeabb3f50418a
comment:3 by , 2 years ago
| Priority: | normal → high |
|---|
Note:
See TracTickets
for help on using tickets.

What's New in Python 3.11.4 final - 2023-06-06
Security
uu.decodethat could allow for directory traversal based on the input if noout_filewas specified.http.client.SimpleHTTPRequestHandler.urllib.parse.urlsplitnow strips leading C0 control and space characters following the specification for URLs defined by WHATWG in response to CVE-2023-24329.Core and Builtins
matchblock.a, a = x, y.sys.setprofileandsys.settracetrampoline functions. This ensures that frames are not duplicated if an exception is raised in the callback function, and ensures that frames are not omitted if a C callback is used and that does not add the frame.bytecodeinstructions could ignore :pep:523when "inlining" calls.caseblocks.try-except*construct in an :exc:ExceptionGroup.except* <except_star>.~ssl.SSLContext.set_ecdh_curvemethod not to use deprecated OpenSSL APIs.nameinreprof :class:weakref.ref.SyntaxErrorwhen parsing source code containing null bytes. Backported fromaab01e3. Patch by Pablo Galindo!pause_readingto work when called from :func:!connection_madein :mod:asyncio.Library
inspect.signaturenameandsupertypeattributes of :class:typing.NewType.asynciopipe protocol loses its connection due to an error, and the caller doesn't awaitwait_closed()on the correspondingStreamWriter, don't log a warning about an exception that was never retrieved. After all, according to theStreamWriter.close()docs, thewait_closed()call is optional ("not mandatory")._posixsubprocessinternals to avoid Python C API usage between fork and exec when markingpass_fds=file descriptors inheritable.inspect.getattr_static.multiprocessing.processcleanup logic that could manifest as an unintendedAttributeErrorwhen callingprocess.close()._tkintermodule for building with Tcl 9.0 and future libtommath by replacing usage of deprecated functions :c:func:`mp_to_unsigned_bin_nand :c:func:mp_unsigned_bin_size` when necessary.socket.getnameinfonow releases the GIL while contacting the DNS serverpathlib.Path.globraised :exc:OSErrorwhen it encountered a symlink to an overly long path.!_csv.Readerand :class:!_csv.Writertypes. The regression was introduced in 3.10.0a4 with PR 23224 (:issue:14935).getstateandsetstatemethods for slotted frozen dataclasses.mmap, fix several bugs that could lead to access to memory-mapped files after they have been invalidated.io.open_codefor files to be executed instead of raw :func:openOverflowErrorin :meth:sqlite3.Connection.blobopenfor 32-bit builds.[bracketed]hosts found by :func:urllib.parse.urlsplitare of IPv6 or IPvFuture format.zipfile.Zipfilecreating invalid zip files whenforce_zip64was used to add files to them. Patch by Carey Metcalfe.tkinter.Menu.indexfor Tk 8.7 so that it does not raiseTclError: expected integer but got ""when it should returnNone.urllib.request.CacheFTPHandlerno longer raises :class:URLErrorif a cached FTP instance is reused. ftplib's endtransfer method calls voidresp to drain the connection to handle FTP instance reuse properly.pdbcrashes when reading source file with different encoding by replacing :func:io.openwith :func:io.open_code. The new method would also call into the hook set by :func:PyFile_SetOpenCodeHook.inspect.Signatureobjects with positional-only parameter with a default followed by a positional-or-keyword parameter without one is impossible.STRICTand fix bitwise operations.ResourceWarningin :class:http.client.HTTPConnectionby closing the proxy / tunnel's CONNECT response explicitly.dataclasses.dataclass.hmacto raise an exception when the requested hash algorithm was not available in OpenSSL despite being available separately as part ofhashlibitself. It now falls back properly to the built-in. This could happen when, for example, your OpenSSL does not include SHA3 support and you want to computehmac.digest(b'K', b'M', 'sha3_256').pdbwhen displaying line numbers of module-level source code.memmber.memberaccess.unittest.mock.patchnot enforcing function signatures for methods decorated with@classmethodor@staticmethodwhen patch is called withautospec=True.http.serveraccepting HTTP requests with HTTP version numbers preceded by '+', or '-', or with digit-separating '_' characters. The length of the version numbers is also constrained.tarfile, and :func:shutil.unpack_archive, have a new a *filter* argument that allows limiting tar features than may be surprising or dangerous, such as creating files outside the destination directory. See :ref:tarfile-extraction-filterfor details.argparse.ArgumentParsernow catches errors when writing messages, such as when :data:sys.stderrisNone.subprocess.Popen.Documentation
max_group_depthandmax_group_widthparameters and theexceptionsattribute of the :class:traceback.TracebackExceptionclass.end_linenoandend_offsetattributes of the :class:traceback.TracebackExceptionclass.typing.NamedTuple.atexitcleanup function from within a registered cleanup function is undefined.Tests
test_pack_configure_inandtest_place_configure_infor changes to error message formatting in Tk 8.7.DISPLAYenvironment variable and-screenoption for toplevels are not useful on Tk for Win32 or Aqua.unittest.mock.PropertyMockwere added.os.spawn* <os.spawnl>tests failing on Windows when the working directory or interpreter path contains spaces.Build
configurewhere we could end up unintentionally linking withlibbsd.static_assertwhen missing from the libc headers to all clang and gcc builds. In particular, this fixes building on macOS <= 10.10.IDLE