➜ micro git:(master) ✗ valgrind --leak-check=full bazel-bin/lib/microhttp/tests/request_parser
==79827== Memcheck, a memory error detector
==79827== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==79827== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==79827== Command: bazel-bin/lib/microhttp/tests/request_parser
==79827==
Running main() from gmock_main.cc
==79827== Invalid read of size 2
==79827== at 0x483F9D8: memmove (vg_replace_strmem.c:1270)
==79827== by 0x119D10: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:66)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x122D55: void std::_Construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (stl_construct.h:75)
==79827== by 0x1227E5: microhttp::http::RequestTestProvider* std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*) (stl_uninitialized.h:83)
==79827== by 0x1221DD: microhttp::http::RequestTestProvider* std::uninitialized_copy<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*) (stl_uninitialized.h:134)
==79827== by 0x121AC3: microhttp::http::RequestTestProvider* std::__uninitialized_copy_a<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:289)
==79827== by 0x120D5D: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_range_initialize<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, std::forward_iterator_tag) (stl_vector.h:1582)
==79827== by 0x11FD3C: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::vector<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, void>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, std::allocator<microhttp::http::RequestTestProvider> const&) (stl_vector.h:654)
==79827== by 0x11E661: testing::internal::ValuesInIteratorRangeGenerator<microhttp::http::RequestTestProvider>::ValuesInIteratorRangeGenerator<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >) (gtest-param-util.h:293)
==79827== by 0x11CD10: testing::internal::ParamGenerator<testing::internal::IteratorTraits<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >::value_type> testing::ValuesIn<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >) (gtest-param-test.h:308)
==79827== Address 0x4fba430 is 0 bytes inside a block of size 7 free'd
==79827== at 0x48399AB: free (vg_replace_malloc.c:530)
==79827== by 0x119D3D: microloop::Buffer::~Buffer() (buffer.h:81)
==79827== by 0x11A0CB: microhttp::http::HttpRequest::~HttpRequest() (http_request.h:20)
==79827== by 0x11A29D: microhttp::http::RequestTestProvider::~RequestTestProvider() (request_parser_test.cpp:20)
==79827== by 0x11F4A5: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::destroy<microhttp::http::RequestTestProvider>(microhttp::http::RequestTestProvider*) (new_allocator.h:153)
==79827== by 0x11DD5C: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::destroy<microhttp::http::RequestTestProvider>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*) (alloc_traits.h:497)
==79827== by 0x121D0B: void std::__relocate_object_a<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:895)
==79827== by 0x121392: microhttp::http::RequestTestProvider* std::__relocate_a_1<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:932)
==79827== by 0x1204CD: microhttp::http::RequestTestProvider* std::__relocate_a<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:946)
==79827== by 0x11F487: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_do_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&, std::integral_constant<bool, true>) (stl_vector.h:453)
==79827== by 0x11DD28: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_vector.h:466)
==79827== by 0x11C4D7: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_realloc_insert<microhttp::http::RequestTestProvider const&>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider const&) (vector.tcc:461)
==79827== Block was alloc'd at
==79827== at 0x483AB65: calloc (vg_replace_malloc.c:752)
==79827== by 0x119CE3: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:65)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x11DB40: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (new_allocator.h:147)
==79827== by 0x11C399: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (alloc_traits.h:484)
==79827== by 0x11B12B: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::push_back(microhttp::http::RequestTestProvider const&) (stl_vector.h:1189)
==79827== by 0x11816D: microhttp::http::request_parser_provider() (request_parser_test.cpp:86)
==79827== by 0x11939E: microhttp::http::gtest_HttpRequestParserTest_EvalGenerator_() (request_parser_test.cpp:134)
==79827== by 0x123A7E: testing::internal::ParameterizedTestCaseInfo<microhttp::http::RequestParserTest>::RegisterTests() (gtest-param-util.h:548)
==79827== by 0x4C6823E: testing::internal::ParameterizedTestCaseRegistry::RegisterTests() (gtest-param-util.h:705)
==79827== by 0x4C5994B: testing::internal::UnitTestImpl::RegisterParameterizedTests() (gtest.cc:2667)
==79827==
==79827== Invalid read of size 2
==79827== at 0x483F9E7: memmove (vg_replace_strmem.c:1270)
==79827== by 0x119D10: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:66)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x122D55: void std::_Construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (stl_construct.h:75)
==79827== by 0x1227E5: microhttp::http::RequestTestProvider* std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*) (stl_uninitialized.h:83)
==79827== by 0x1221DD: microhttp::http::RequestTestProvider* std::uninitialized_copy<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*) (stl_uninitialized.h:134)
==79827== by 0x121AC3: microhttp::http::RequestTestProvider* std::__uninitialized_copy_a<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:289)
==79827== by 0x120D5D: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_range_initialize<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, std::forward_iterator_tag) (stl_vector.h:1582)
==79827== by 0x11FD3C: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::vector<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, void>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, std::allocator<microhttp::http::RequestTestProvider> const&) (stl_vector.h:654)
==79827== by 0x11E661: testing::internal::ValuesInIteratorRangeGenerator<microhttp::http::RequestTestProvider>::ValuesInIteratorRangeGenerator<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >) (gtest-param-util.h:293)
==79827== by 0x11CD10: testing::internal::ParamGenerator<testing::internal::IteratorTraits<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >::value_type> testing::ValuesIn<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >) (gtest-param-test.h:308)
==79827== Address 0x4fba434 is 4 bytes inside a block of size 7 free'd
==79827== at 0x48399AB: free (vg_replace_malloc.c:530)
==79827== by 0x119D3D: microloop::Buffer::~Buffer() (buffer.h:81)
==79827== by 0x11A0CB: microhttp::http::HttpRequest::~HttpRequest() (http_request.h:20)
==79827== by 0x11A29D: microhttp::http::RequestTestProvider::~RequestTestProvider() (request_parser_test.cpp:20)
==79827== by 0x11F4A5: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::destroy<microhttp::http::RequestTestProvider>(microhttp::http::RequestTestProvider*) (new_allocator.h:153)
==79827== by 0x11DD5C: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::destroy<microhttp::http::RequestTestProvider>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*) (alloc_traits.h:497)
==79827== by 0x121D0B: void std::__relocate_object_a<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:895)
==79827== by 0x121392: microhttp::http::RequestTestProvider* std::__relocate_a_1<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:932)
==79827== by 0x1204CD: microhttp::http::RequestTestProvider* std::__relocate_a<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:946)
==79827== by 0x11F487: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_do_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&, std::integral_constant<bool, true>) (stl_vector.h:453)
==79827== by 0x11DD28: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_vector.h:466)
==79827== by 0x11C4D7: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_realloc_insert<microhttp::http::RequestTestProvider const&>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider const&) (vector.tcc:461)
==79827== Block was alloc'd at
==79827== at 0x483AB65: calloc (vg_replace_malloc.c:752)
==79827== by 0x119CE3: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:65)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x11DB40: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (new_allocator.h:147)
==79827== by 0x11C399: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (alloc_traits.h:484)
==79827== by 0x11B12B: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::push_back(microhttp::http::RequestTestProvider const&) (stl_vector.h:1189)
==79827== by 0x11816D: microhttp::http::request_parser_provider() (request_parser_test.cpp:86)
==79827== by 0x11939E: microhttp::http::gtest_HttpRequestParserTest_EvalGenerator_() (request_parser_test.cpp:134)
==79827== by 0x123A7E: testing::internal::ParameterizedTestCaseInfo<microhttp::http::RequestParserTest>::RegisterTests() (gtest-param-util.h:548)
==79827== by 0x4C6823E: testing::internal::ParameterizedTestCaseRegistry::RegisterTests() (gtest-param-util.h:705)
==79827== by 0x4C5994B: testing::internal::UnitTestImpl::RegisterParameterizedTests() (gtest.cc:2667)
==79827==
==79827== Invalid read of size 1
==79827== at 0x483FA10: memmove (vg_replace_strmem.c:1270)
==79827== by 0x119D10: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:66)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x122D55: void std::_Construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (stl_construct.h:75)
==79827== by 0x1227E5: microhttp::http::RequestTestProvider* std::__uninitialized_copy<false>::__uninit_copy<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*) (stl_uninitialized.h:83)
==79827== by 0x1221DD: microhttp::http::RequestTestProvider* std::uninitialized_copy<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*) (stl_uninitialized.h:134)
==79827== by 0x121AC3: microhttp::http::RequestTestProvider* std::__uninitialized_copy_a<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:289)
==79827== by 0x120D5D: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_range_initialize<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, std::forward_iterator_tag) (stl_vector.h:1582)
==79827== by 0x11FD3C: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::vector<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, void>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, std::allocator<microhttp::http::RequestTestProvider> const&) (stl_vector.h:654)
==79827== by 0x11E661: testing::internal::ValuesInIteratorRangeGenerator<microhttp::http::RequestTestProvider>::ValuesInIteratorRangeGenerator<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >) (gtest-param-util.h:293)
==79827== by 0x11CD10: testing::internal::ParamGenerator<testing::internal::IteratorTraits<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >::value_type> testing::ValuesIn<__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > > >(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, __gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider const*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >) (gtest-param-test.h:308)
==79827== Address 0x4fba436 is 6 bytes inside a block of size 7 free'd
==79827== at 0x48399AB: free (vg_replace_malloc.c:530)
==79827== by 0x119D3D: microloop::Buffer::~Buffer() (buffer.h:81)
==79827== by 0x11A0CB: microhttp::http::HttpRequest::~HttpRequest() (http_request.h:20)
==79827== by 0x11A29D: microhttp::http::RequestTestProvider::~RequestTestProvider() (request_parser_test.cpp:20)
==79827== by 0x11F4A5: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::destroy<microhttp::http::RequestTestProvider>(microhttp::http::RequestTestProvider*) (new_allocator.h:153)
==79827== by 0x11DD5C: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::destroy<microhttp::http::RequestTestProvider>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*) (alloc_traits.h:497)
==79827== by 0x121D0B: void std::__relocate_object_a<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:895)
==79827== by 0x121392: microhttp::http::RequestTestProvider* std::__relocate_a_1<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:932)
==79827== by 0x1204CD: microhttp::http::RequestTestProvider* std::__relocate_a<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:946)
==79827== by 0x11F487: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_do_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&, std::integral_constant<bool, true>) (stl_vector.h:453)
==79827== by 0x11DD28: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_vector.h:466)
==79827== by 0x11C4D7: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_realloc_insert<microhttp::http::RequestTestProvider const&>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider const&) (vector.tcc:461)
==79827== Block was alloc'd at
==79827== at 0x483AB65: calloc (vg_replace_malloc.c:752)
==79827== by 0x119CE3: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:65)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x11DB40: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (new_allocator.h:147)
==79827== by 0x11C399: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (alloc_traits.h:484)
==79827== by 0x11B12B: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::push_back(microhttp::http::RequestTestProvider const&) (stl_vector.h:1189)
==79827== by 0x11816D: microhttp::http::request_parser_provider() (request_parser_test.cpp:86)
==79827== by 0x11939E: microhttp::http::gtest_HttpRequestParserTest_EvalGenerator_() (request_parser_test.cpp:134)
==79827== by 0x123A7E: testing::internal::ParameterizedTestCaseInfo<microhttp::http::RequestParserTest>::RegisterTests() (gtest-param-util.h:548)
==79827== by 0x4C6823E: testing::internal::ParameterizedTestCaseRegistry::RegisterTests() (gtest-param-util.h:705)
==79827== by 0x4C5994B: testing::internal::UnitTestImpl::RegisterParameterizedTests() (gtest.cc:2667)
==79827==
==79827== Invalid free() / delete / delete[] / realloc()
==79827== at 0x48399AB: free (vg_replace_malloc.c:530)
==79827== by 0x119D3D: microloop::Buffer::~Buffer() (buffer.h:81)
==79827== by 0x11A0CB: microhttp::http::HttpRequest::~HttpRequest() (http_request.h:20)
==79827== by 0x11A29D: microhttp::http::RequestTestProvider::~RequestTestProvider() (request_parser_test.cpp:20)
==79827== by 0x120215: void std::_Destroy<microhttp::http::RequestTestProvider>(microhttp::http::RequestTestProvider*) (stl_construct.h:98)
==79827== by 0x11F029: void std::_Destroy_aux<false>::__destroy<microhttp::http::RequestTestProvider*>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*) (stl_construct.h:108)
==79827== by 0x11D6F1: void std::_Destroy<microhttp::http::RequestTestProvider*>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*) (stl_construct.h:137)
==79827== by 0x11BFC2: void std::_Destroy<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_construct.h:206)
==79827== by 0x11AE64: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::~vector() (stl_vector.h:677)
==79827== by 0x1193BE: microhttp::http::gtest_HttpRequestParserTest_EvalGenerator_() (request_parser_test.cpp:134)
==79827== by 0x123A7E: testing::internal::ParameterizedTestCaseInfo<microhttp::http::RequestParserTest>::RegisterTests() (gtest-param-util.h:548)
==79827== by 0x4C6823E: testing::internal::ParameterizedTestCaseRegistry::RegisterTests() (gtest-param-util.h:705)
==79827== Address 0x4fba430 is 0 bytes inside a block of size 7 free'd
==79827== at 0x48399AB: free (vg_replace_malloc.c:530)
==79827== by 0x119D3D: microloop::Buffer::~Buffer() (buffer.h:81)
==79827== by 0x11A0CB: microhttp::http::HttpRequest::~HttpRequest() (http_request.h:20)
==79827== by 0x11A29D: microhttp::http::RequestTestProvider::~RequestTestProvider() (request_parser_test.cpp:20)
==79827== by 0x11F4A5: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::destroy<microhttp::http::RequestTestProvider>(microhttp::http::RequestTestProvider*) (new_allocator.h:153)
==79827== by 0x11DD5C: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::destroy<microhttp::http::RequestTestProvider>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*) (alloc_traits.h:497)
==79827== by 0x121D0B: void std::__relocate_object_a<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:895)
==79827== by 0x121392: microhttp::http::RequestTestProvider* std::__relocate_a_1<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:932)
==79827== by 0x1204CD: microhttp::http::RequestTestProvider* std::__relocate_a<microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider> >(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_uninitialized.h:946)
==79827== by 0x11F487: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_do_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&, std::integral_constant<bool, true>) (stl_vector.h:453)
==79827== by 0x11DD28: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_S_relocate(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider*, std::allocator<microhttp::http::RequestTestProvider>&) (stl_vector.h:466)
==79827== by 0x11C4D7: void std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::_M_realloc_insert<microhttp::http::RequestTestProvider const&>(__gnu_cxx::__normal_iterator<microhttp::http::RequestTestProvider*, std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> > >, microhttp::http::RequestTestProvider const&) (vector.tcc:461)
==79827== Block was alloc'd at
==79827== at 0x483AB65: calloc (vg_replace_malloc.c:752)
==79827== by 0x119CE3: microloop::Buffer::Buffer(microloop::Buffer const&) (buffer.h:65)
==79827== by 0x11A244: microhttp::http::HttpRequest::HttpRequest(microhttp::http::HttpRequest const&) (http_request.h:20)
==79827== by 0x11DAC0: microhttp::http::RequestTestProvider::RequestTestProvider(microhttp::http::RequestTestProvider const&) (request_parser_test.cpp:20)
==79827== by 0x11DB40: void __gnu_cxx::new_allocator<microhttp::http::RequestTestProvider>::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (new_allocator.h:147)
==79827== by 0x11C399: void std::allocator_traits<std::allocator<microhttp::http::RequestTestProvider> >::construct<microhttp::http::RequestTestProvider, microhttp::http::RequestTestProvider const&>(std::allocator<microhttp::http::RequestTestProvider>&, microhttp::http::RequestTestProvider*, microhttp::http::RequestTestProvider const&) (alloc_traits.h:484)
==79827== by 0x11B12B: std::vector<microhttp::http::RequestTestProvider, std::allocator<microhttp::http::RequestTestProvider> >::push_back(microhttp::http::RequestTestProvider const&) (stl_vector.h:1189)
==79827== by 0x11816D: microhttp::http::request_parser_provider() (request_parser_test.cpp:86)
==79827== by 0x11939E: microhttp::http::gtest_HttpRequestParserTest_EvalGenerator_() (request_parser_test.cpp:134)
==79827== by 0x123A7E: testing::internal::ParameterizedTestCaseInfo<microhttp::http::RequestParserTest>::RegisterTests() (gtest-param-util.h:548)
==79827== by 0x4C6823E: testing::internal::ParameterizedTestCaseRegistry::RegisterTests() (gtest-param-util.h:705)
==79827== by 0x4C5994B: testing::internal::UnitTestImpl::RegisterParameterizedTests() (gtest.cc:2667)
==79827==
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from Http/RequestParserTest
[ RUN ] Http/RequestParserTest.ParseRequest/0
[ OK ] Http/RequestParserTest.ParseRequest/0 (41 ms)
[ RUN ] Http/RequestParserTest.ParseRequest/1
[ OK ] Http/RequestParserTest.ParseRequest/1 (1 ms)
[ RUN ] Http/RequestParserTest.ParseRequest/2
[ OK ] Http/RequestParserTest.ParseRequest/2 (8 ms)
[ RUN ] Http/RequestParserTest.ParseRequest/3
[ OK ] Http/RequestParserTest.ParseRequest/3 (9 ms)
[ RUN ] Http/RequestParserTest.ParseRequest/4
[ OK ] Http/RequestParserTest.ParseRequest/4 (1 ms)
[----------] 5 tests from Http/RequestParserTest (67 ms total)
[----------] Global test environment tear-down
[==========] 5 tests from 1 test case ran. (94 ms total)
[ PASSED ] 5 tests.
==79827==
==79827== HEAP SUMMARY:
==79827== in use at exit: 0 bytes in 0 blocks
==79827== total heap usage: 586 allocs, 587 frees, 137,981 bytes allocated
==79827==
==79827== All heap blocks were freed -- no leaks are possible
==79827==
==79827== For counts of detected and suppressed errors, rerun with: -v
==79827== ERROR SUMMARY: 5 errors from 4 contexts (suppressed: 0 from 0)