[Bug 38615] New: Spicec (win32) & SSL => Runtimeerror + potential fix for it
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jun 23 13:00:16 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=38615
Summary: Spicec (win32) & SSL => Runtimeerror + potential fix
for it
Product: Spice
Version: unspecified
Platform: x86 (IA32)
OS/Version: Windows (All)
Status: NEW
Severity: major
Priority: medium
Component: client
AssignedTo: spice-bugs at lists.freedesktop.org
ReportedBy: thomast at cs.tu-berlin.de
Hi,
Normally I connect under Linux(debian/ubuntu) to my SpiceVM with:
spicec -h 192.168.0.5 -s 5924 --host-subject
C=DE,L=Berlin,O=MyTestingBench,CN=spiceserver
I compiled the current master Branch with VC++ 2008.
The debug spicec.exe gives me an Assertion Error:
"vector subscript out of range".
The Runtime Error is triggered inside the Method "connect_secure" of the class
"RedPeer"(red_peer.cpp).
Concretely Line 184 fw :
################################################
verify = spice_openssl_verify_new(
_ssl, auth_flags,
host,
(char*)&options.host_auth.host_pubkey[0],
options.host_auth.host_pubkey.size(),
options.host_auth.host_subject.c_str());
################################################
My fix:
################################################
verify = spice_openssl_verify_new(
_ssl, auth_flags,
host,
(char*)&options.host_auth.host_pubkey,
options.host_auth.host_pubkey.size(),
options.host_auth.host_subject.c_str());
################################################
host_pubkey seems to be empty atm of accessing it, therefore it crashes.
Or the VC-Compiler compiles the client different to gcc/g++.
Greetings
Thomas Tyminski
Berlin, Germany
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the spice-bugs
mailing list