https://github.com/python/cpython/commit/697beec04dbbd03508e02df9f0042ce5a8772b46
commit: 697beec04dbbd03508e02df9f0042ce5a8772b46
branch: 3.11
author: Steve Dower <steve.do...@python.org>
committer: ambv <luk...@langa.pl>
date: 2024-09-04T18:02:48+02:00
summary:

[3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit 
event (#119734)

gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event

files:
A Misc/NEWS.d/next/Windows/2024-05-29-17-00-27.gh-issue-119690.tv6Zgs.rst
M Modules/_winapi.c

diff --git 
a/Misc/NEWS.d/next/Windows/2024-05-29-17-00-27.gh-issue-119690.tv6Zgs.rst 
b/Misc/NEWS.d/next/Windows/2024-05-29-17-00-27.gh-issue-119690.tv6Zgs.rst
new file mode 100644
index 00000000000000..45e644c652b67b
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2024-05-29-17-00-27.gh-issue-119690.tv6Zgs.rst
@@ -0,0 +1,2 @@
+Fixes data type confusion in audit event raised by
+``_winapi.CreateNamedPipe``.
diff --git a/Modules/_winapi.c b/Modules/_winapi.c
index 54eee9e8c3f1d5..0376cc0a26f832 100644
--- a/Modules/_winapi.c
+++ b/Modules/_winapi.c
@@ -708,7 +708,7 @@ _winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR 
name, DWORD open_mode,
 {
     HANDLE handle;
 
-    if (PySys_Audit("_winapi.CreateNamedPipe", "uII",
+    if (PySys_Audit("_winapi.CreateNamedPipe", "sII",
                     name, open_mode, pipe_mode) < 0) {
         return INVALID_HANDLE_VALUE;
     }

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to