Skip to content

Commit

Permalink
[3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedP…
Browse files Browse the repository at this point in the history
…ipe audit event (#119734)

gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event
  • Loading branch information
zooba authored Sep 4, 2024
1 parent fc0b825 commit 697beec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixes data type confusion in audit event raised by
``_winapi.CreateNamedPipe``.
2 changes: 1 addition & 1 deletion Modules/_winapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 697beec

Please sign in to comment.