8000 [3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedP… · python/cpython@697beec · GitHub
[go: up one dir, main page]

Skip to content

Commit 697beec

Browse files
authored
[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
1 parent fc0b825 commit 697beec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixes data type confusion in audit event raised by
2+
``_winapi.CreateNamedPipe``.

Modules/_winapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ _winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD open_mode,
708708
{
709709
HANDLE handle;
710710

711-
if (PySys_Audit("_winapi.CreateNamedPipe", "uII",
711+
if (PySys_Audit("_winapi.CreateNamedPipe", "sII",
712712
name, open_mode, pipe_mode) < 0) {
713713
return INVALID_HANDLE_VALUE;
714714
}

0 commit comments

Comments
 (0)
0