Skip to content

Commit

Permalink
pythongh-119690: Fixes buffer type confusion in _winapi.CreateNamedPi…
Browse files Browse the repository at this point in the history
…pe audit event
  • Loading branch information
zooba committed May 29, 2024
1 parent 35c799d commit 688cf73
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 688cf73

Please sign in to comment.