adedov / libiqxmlrpc

Libiqxmlrpc is an implementation of the XML-RPC standard in C++.
Other
14 stars 9 forks source link

Conditional jump or move depends on uninitialised value Header::ver_level_ #10

Closed yarikmsu closed 5 years ago

yarikmsu commented 5 years ago

Valgrind reports:

==25123== Conditional jump or move depends on uninitialised value(s) ==25123== at 0x2870E95B: set_option_checked (http.cc:158) ==25123== by 0x2870E95B: iqxmlrpc::http::Header::parse(std::string const&) (http.cc:120) ==25123== by 0x2870EC83: iqxmlrpc::http::Response_header::Response_header(iqxmlrpc::http::Verification_level, std::string const&) (http.cc:335) ==25123== by 0x2871D448: iqxmlrpc::http::Packet* iqxmlrpc::http::Packet_reader::read_packet(std::string const&, bool) (http.cc:466) ==25123== by 0x2871D908: iqxmlrpc::Http_client_connection::handle_input(bool&) (http_client.cc:62) ==25123== by 0x287005A8: iqnet::Reactor::invoke_event_handler(iqnet::Reactor_base::HandlerState&) (reactor_impl.h:218) ==25123== by 0x28700812: iqnet::Reactor::handle_system_events(int) (reactor_impl.h:274) ==25123== by 0x2871DAEE: iqxmlrpc::Http_client_connection::do_process_session(std::string const&) (http_client.cc:33) ==25123== by 0x28723666: iqxmlrpc::Client_connection::process_session(iqxmlrpc::Request const&, iqxmlrpc::XHeaders const&) (client_conn.cc:41) ==25123== by 0x28708B37: iqxmlrpc::Client_base::execute(std::string const&, std::vector<iqxmlrpc::Value, std::allocator > const&, iqxmlrpc::XHeaders const&) (client.cc:140) ==25123== Uninitialised value was created by a heap allocation ==25123== at 0x4C2A1E3: operator new(unsigned long) (vg_replace_malloc.c:334) ==25123== by 0x1EAFFE4A: iqnet::Connector::create_connection(iqnet::Socket const&) (connector.h:38) ==25123== by 0x286FFBCA: iqnet::Connector_base::connect(int) (connector.cc:69) ==25123== by 0x1EAFFDAC: iqxmlrpc::Client::get_connection() (client.h:108) ==25123== by 0x28708BC0: create_connection (client.cc:63) ==25123== by 0x28708BC0: Auto_conn (client.cc:44) ==25123== by 0x28708BC0: iqxmlrpc::Client_base::execute(std::string const&, std::vector<iqxmlrpc::Value, std::allocator > const&, iqxmlrpc::XHeaders const&) (client.cc:137)