https://bugs.winehq.org/show_bug.cgi?id=57656
Bug ID: 57656 Summary: CryptMsgGetParam() with CMSG_SIGNER_AUTH_ATTR_PARAM/CMSG_SIGNER_UNAUTH_ATTR_PA RAM returns success with 0 buffer size Product: Wine Version: 10.0-rc5 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs@winehq.org Reporter: bunglehead@gmail.com Distribution: ---
This is currently triggered by wintrust tests from test_wintrust_digest(). The issue is that GetParam returns TRUE when there is no attributes to return. That leads to malloc(0) and then attempt to read attributes from that.
I don't know how to write a proper test for this at crypt32 side, so filing a bug instead.
http://bugs.winehq.org/show_bug.cgi?id=57656
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- At least in my tree makes this merge request ASan happy: https://gitlab.winehq.org/wine/wine/-/merge_requests/8350
http://bugs.winehq.org/show_bug.cgi?id=57656
--- Comment #2 from Bernhard Übelacker bernhardu@mailbox.org --- (In reply to Bernhard Übelacker from comment #1)
At least in my tree makes this merge request ASan happy: https://gitlab.winehq.org/wine/wine/-/merge_requests/8350
Was a false alarm, did run Asan the wrong flags, sorry for the noise.
http://bugs.winehq.org/show_bug.cgi?id=57656
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |057e1d73e84b06fac90cba96dbf | |0305d219df3d5
--- Comment #3 from Bernhard Übelacker bernhardu@mailbox.org --- But this time the ASan report vanished with this commit:
https://gitlab.winehq.org/wine/wine/-/commit/057e1d73e84b06fac90cba96dbf0305...
Therefore this bug can be closed?
http://bugs.winehq.org/show_bug.cgi?id=57656
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- Sure, thanks.
http://bugs.winehq.org/show_bug.cgi?id=57656
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 10.11.