Re: [PATCH 0/1] MR74: ntdll: Prevent double free (Coverity)
12 Oct
2022
12 Oct
'22
8:06 a.m.
Sven Baars (@sbaars) commented about dlls/ntdll/unix/file.c:
if (size > 0x10000) size = 0x10000; if ((tmpbuf = malloc( size ))) { + if (needs_close) close( fd ); if (!server_get_unix_fd( handle, FILE_READ_DATA, &fd, &needs_close, NULL, NULL )) { int res = recv( fd, tmpbuf, size, MSG_PEEK ); info->MessagesAvailable = (res > 0); info->NextMessageSize = (res >= 0) ? res : MAILSLOT_NO_MESSAGE; if (needs_close) close( fd );
I think you want to remove this one as well. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/74#note_10372
1161
Age (days ago)
1161
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sven Baars (@sbaars)