]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event...
authorSteve Dower <steve.dower@python.org>
Wed, 4 Sep 2024 16:02:48 +0000 (17:02 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 16:02:48 +0000 (18:02 +0200)
gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event

Misc/NEWS.d/next/Windows/2024-05-29-17-00-27.gh-issue-119690.tv6Zgs.rst [new file with mode: 0644]
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 (file)
index 0000000..45e644c
--- /dev/null
@@ -0,0 +1,2 @@
+Fixes data type confusion in audit event raised by
+``_winapi.CreateNamedPipe``.
index 54eee9e8c3f1d50a1ad13bfcf2b7e7eae3f96d65..0376cc0a26f832eb6382d33b5f982ab62d49acc9 100644 (file)
@@ -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;
     }