https://bugs.winehq.org/show_bug.cgi?id=52961
Bug ID: 52961 Summary: crypt32:str - test_CertGetNameString() fails on Windows 7 Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
crypt32:str - test_CertGetNameString() fails on Windows 7:
str.c:867: Test failed: line 951: unexpected length 10, expected 11. str.c:871: Test failed: line 951: unexpected value "localhost\x00e". str.c:885: Test failed: line 951: unexpected len 10, expected 11. str.c:894: Test failed: line 951: string is not zero terminated. str.c:867: Test failed: line 952: unexpected length 21, expected 1. str.c:871: Test failed: line 952: unexpected value "a". str.c:877: Test failed: line 952: unexpected str[1] 0x72. str.c:878: Test failed: line 952: str "ric@codeweavers.com", string data mismatch. str.c:885: Test failed: line 952: unexpected len 21, expected 1. str.c:886: Test failed: line 952: unexpected value L"aric@codeweavers.com\0000". str.c:892: Test failed: line 952: str L"aric@codeweavers.c", string data mismatch. str.c:894: Test failed: line 952: string is not zero terminated. str.c:867: Test failed: line 953: unexpected length 10, expected 1. str.c:871: Test failed: line 953: unexpected value "l". str.c:877: Test failed: line 953: unexpected str[1] 0x6f. str.c:878: Test failed: line 953: str "ocalhost", string data mismatch. str.c:885: Test failed: line 953: unexpected len 10, expected 1. str.c:886: Test failed: line 953: unexpected value L"localhost\0000". str.c:892: Test failed: line 953: str L"localho", string data mismatch. str.c:894: Test failed: line 953: string is not zero terminated. str.c:867: Test failed: line 976: unexpected length 8, expected 19. str.c:871: Test failed: line 976: unexpected value "ex1.org\x00n.org\x00rs.co". str.c:885: Test failed: line 976: unexpected len 8, expected 19. str.c:894: Test failed: line 976: string is not zero terminated. str.c:867: Test failed: line 978: unexpected length 8, expected 19. str.c:871: Test failed: line 978: unexpected value "ex3.org\x00n.org\x00rs.co". str.c:885: Test failed: line 978: unexpected len 8, expected 19. str.c:894: Test failed: line 978: string is not zero terminated.
https://test.winehq.org/data/patterns.html#crypt32:str
A bisect shows that the failures started with the commit below:
commit 0c35a851cd73247cb95187acc2e22074f9ca09a3 Author: Paul Gofman pgofman@codeweavers.com Date: Fri Apr 15 14:44:32 2022 +0300
crypt32: Support CERT_NAME_SEARCH_ALL_NAMES_FLAG in CertGetNameStringW().
Signed-off-by: Alexandre Julliard julliard@winehq.org