[Git][wine/wine][master] crypt32: Don't release context in CSignedEncodeMsg_Open.
Alexandre Julliard pushed to branch master at wine / wine Commits: 18f55c30 by Yuxuan Shui at 2025-06-25T12:17:27+02:00 crypt32: Don't release context in CSignedEncodeMsg_Open. The docs say it should be released in the last CryptMsgUpdate, but tests show it's actually released in CryptMsgClose. So let's do the same. This solve a use-after-free issue for signed messages, because they contains HCRYPTHASH objects which references the context internally, and will use it in CryptDestroyHash. If the context is released in CSignedEncodeMsg_Open, this will be a use-after-free. - - - - - 2 changed files: - dlls/crypt32/msg.c - dlls/crypt32/tests/msg.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/18f55c306e59ef21701f16463db68c6... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/18f55c306e59ef21701f16463db68c6... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Alexandre Julliard (@julliard)