Invalid read of size 2 at strlenW (unicode.h:216) by CRYPT_AsnEncodePrintableString (encode.c:2046) by CRYPT_AsnEncodeUnicodeNameValue (encode.c:2192) by CryptEncodeObjectEx (encode.c:4587) by CRYPT_EncodeValueWithType (str.c:711) by CRYPT_EncodeValue (str.c:740) by CRYPT_ValueToRDN (str.c:785) by CertStrToNameW (str.c:866) by CertStrToNameA (str.c:506) by test_CertStrToNameA (str.c:523) by func_str (str.c:652) by run_test (test.h:541) by main (test.h:591) Address 0x0 is not stack'd, malloc'd or (recently) free'd { Memcheck:Addr2 fun:strlenW fun:CRYPT_AsnEncodePrintableString fun:CRYPT_AsnEncodeUnicodeNameValue fun:CryptEncodeObjectEx fun:CRYPT_EncodeValueWithType fun:CRYPT_EncodeValue fun:CRYPT_ValueToRDN fun:CertStrToNameW fun:CertStrToNameA fun:test_CertStrToNameA fun:func_str fun:run_test fun:main } HEAP SUMMARY: in use at exit: 258,870 bytes in 4,436 blocks total heap usage: 21,862 allocs, 17,426 frees, 5,422,088 bytes allocated LEAK SUMMARY: definitely lost: 0 bytes in 0 blocks indirectly lost: 120 bytes in 10 blocks possibly lost: 0 bytes in 0 blocks still reachable: 183,457 bytes in 1,722 blocks suppressed: 75,293 bytes in 2,704 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-reachable=yes For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 3 errors from 1 contexts (suppressed: 303 from 95) used_suppression: 94 todo_suppress_libfontconfig_leak used_suppression: 150 todo_suppress_dlopen_leak used_suppression: 1 suppress_nss_leak used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XRender_Init used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XComposite_Init used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XRandR_Init used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XF86VM_Init used_suppression: 4 todo_wine_dlls_winex11drv__xinerama_init used_suppression: 2 todo_wine_dlls_winex11drv__XkbUseExtension used_suppression: 1 user32_builtin_classes_leak used_suppression: 1 todo_suppress_wine_init_load_order_leak used_suppression: 1 todo_suppress_wine_alloc_module_leak used_suppression: 1 todo_wine_dlls_winex11drv_XOpenDisplay used_suppression: 60 glibc-2.10-on-SUSE-10.3-(x86) used_suppression: 204 dl-hack3-cond-1