==84530== Memcheck, a memory error detector
==84530== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==84530== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==84530== Command: ./Zipper-test
==84530==
--84530-- run: /usr/bin/dsymutil "./Zipper-test"
warning: no debug symbols in executable (-arch x86_64)
--84530-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option
--84530-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times)
--84530-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times)
==84530== Conditional jump or move depends on uninitialised value(s)
==84530== at 0x100733A28: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004ED60: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100053F65: zipper::Unzipper::Impl::extractToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::ZipEntry&) (in ./Zipper-test)
==84530== by 0x100053C7E: zipper::Unzipper::Impl::extractCurrentEntryToFile(zipper::ZipEntry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100052F84: zipper::Unzipper::Impl::extractAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) (in ./Zipper-test)
==84530== by 0x10005316D: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100003ED8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== Uninitialised value was created by a stack allocation
==84530== at 0x10004E949: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530==
==84530== Conditional jump or move depends on uninitialised value(s)
==84530== at 0x100733A28: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004EE01: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100053F65: zipper::Unzipper::Impl::extractToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::ZipEntry&) (in ./Zipper-test)
==84530== by 0x100053C7E: zipper::Unzipper::Impl::extractCurrentEntryToFile(zipper::ZipEntry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100052F84: zipper::Unzipper::Impl::extractAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) (in ./Zipper-test)
==84530== by 0x10005316D: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100003ED8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== Uninitialised value was created by a stack allocation
==84530== at 0x10004E949: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530==
==84530== Invalid read of size 16
==84530== at 0x100733A05: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004ED60: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530== Address 0x100f66b80 is 16 bytes before a block of size 80 alloc'd
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x1001B3F08: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /usr/lib/libc++.1.dylib)
==84530== by 0x10004EC98: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530==
==84530== Invalid read of size 16
==84530== at 0x100733A05: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004EE01: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530== Address 0x100f66b80 is 16 bytes before a block of size 80 alloc'd
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x1001B3F08: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /usr/lib/libc++.1.dylib)
==84530== by 0x10004EC98: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530==
==84530== Conditional jump or move depends on uninitialised value(s)
==84530== at 0x100733A28: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004ED60: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530== Uninitialised value was created by a heap allocation
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x1001B3F08: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /usr/lib/libc++.1.dylib)
==84530== by 0x10004EC98: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530==
==84530== Conditional jump or move depends on uninitialised value(s)
==84530== at 0x100733A28: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004EE01: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530== Uninitialised value was created by a heap allocation
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x1001B3F08: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /usr/lib/libc++.1.dylib)
==84530== by 0x10004EC98: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x1000044D8: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== by 0x10000EE84: Catch::RunContext::runTest(Catch::TestCase const&) (in ./Zipper-test)
==84530== by 0x10000E744: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530==
==84530== Invalid read of size 16
==84530== at 0x100733A05: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004ED60: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100053F65: zipper::Unzipper::Impl::extractToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::ZipEntry&) (in ./Zipper-test)
==84530== by 0x100053C7E: zipper::Unzipper::Impl::extractCurrentEntryToFile(zipper::ZipEntry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100052F84: zipper::Unzipper::Impl::extractAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) (in ./Zipper-test)
==84530== by 0x10005316D: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100004D7F: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== Address 0x101095420 is 16 bytes before a block of size 80 alloc'd
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x1001B3F08: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /usr/lib/libc++.1.dylib)
==84530== by 0x10004EC98: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100053F65: zipper::Unzipper::Impl::extractToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::ZipEntry&) (in ./Zipper-test)
==84530== by 0x100053C7E: zipper::Unzipper::Impl::extractCurrentEntryToFile(zipper::ZipEntry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100052F84: zipper::Unzipper::Impl::extractAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) (in ./Zipper-test)
==84530== by 0x10005316D: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100004D7F: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530==
==84530== Invalid read of size 16
==84530== at 0x100733A05: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10004EE01: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100053F65: zipper::Unzipper::Impl::extractToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::ZipEntry&) (in ./Zipper-test)
==84530== by 0x100053C7E: zipper::Unzipper::Impl::extractCurrentEntryToFile(zipper::ZipEntry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100052F84: zipper::Unzipper::Impl::extractAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) (in ./Zipper-test)
==84530== by 0x10005316D: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100004D7F: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530== by 0x100027855: Catch::RunContext::invokeActiveTestCase() (in ./Zipper-test)
==84530== by 0x100027097: Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) (in ./Zipper-test)
==84530== Address 0x101095420 is 16 bytes before a block of size 80 alloc'd
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x1001B3F08: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /usr/lib/libc++.1.dylib)
==84530== by 0x10004EC98: zipper::CDirEntry::normalize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EADD: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x10004EB83: zipper::CDirEntry::createDir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100051300: zipper::makedir(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100053F65: zipper::Unzipper::Impl::extractToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, zipper::ZipEntry&) (in ./Zipper-test)
==84530== by 0x100053C7E: zipper::Unzipper::Impl::extractCurrentEntryToFile(zipper::ZipEntry&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100052F84: zipper::Unzipper::Impl::extractAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > const&) (in ./Zipper-test)
==84530== by 0x10005316D: zipper::Unzipper::extract(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in ./Zipper-test)
==84530== by 0x100004D7F: ____C_A_T_C_H____T_E_S_T____15() (in ./Zipper-test)
==84530==
==84530== Conditional jump or move depends on uninitialised value(s)
==84530== at 0x100733A28: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10045BBA5: __sfvwrite (in /usr/lib/system/libsystem_c.dylib)
==84530== by 0x10045BF59: fwrite (in /usr/lib/system/libsystem_c.dylib)
==84530== by 0x10000BA34: std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) (in ./Zipper-test)
==84530== by 0x10000B871: std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) (in ./Zipper-test)
==84530== by 0x100029D3A: Catch::(anonymous namespace)::PosixColourImpl::use(Catch::Colour::Code) (in ./Zipper-test)
==84530== by 0x10001221D: Catch::Colour::use(Catch::Colour::Code) (in ./Zipper-test)
==84530== by 0x100043525: Catch::ConsoleReporter::printTotalsDivider(Catch::Totals const&) (in ./Zipper-test)
==84530== by 0x1000220A0: Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&) (in ./Zipper-test)
==84530== by 0x100027ED9: Catch::RunContext::~RunContext() (in ./Zipper-test)
==84530== by 0x10000E883: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== Uninitialised value was created by a stack allocation
==84530== at 0x100029BB0: Catch::(anonymous namespace)::PosixColourImpl::use(Catch::Colour::Code) (in ./Zipper-test)
==84530==
==84530== Invalid read of size 16
==84530== at 0x100733A65: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10045BBA5: __sfvwrite (in /usr/lib/system/libsystem_c.dylib)
==84530== by 0x10045BF59: fwrite (in /usr/lib/system/libsystem_c.dylib)
==84530== by 0x10000BA34: std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) (in ./Zipper-test)
==84530== by 0x10000B871: std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) (in ./Zipper-test)
==84530== by 0x1000438B8: Catch::ConsoleReporter::printTotalsDivider(Catch::Totals const&) (in ./Zipper-test)
==84530== by 0x1000220A0: Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&) (in ./Zipper-test)
==84530== by 0x100027ED9: Catch::RunContext::~RunContext() (in ./Zipper-test)
==84530== by 0x10000E883: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530== Address 0x1013adad0 is 0 bytes after a block of size 80 alloc'd
==84530== at 0x100154086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==84530== by 0x100DD9627: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==84530== by 0x100043869: Catch::ConsoleReporter::printTotalsDivider(Catch::Totals const&) (in ./Zipper-test)
==84530== by 0x1000220A0: Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&) (in ./Zipper-test)
==84530== by 0x100027ED9: Catch::RunContext::~RunContext() (in ./Zipper-test)
==84530== by 0x10000E883: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530==
===============================================================================
==84530== Conditional jump or move depends on uninitialised value(s)
==84530== at 0x100733A28: _platform_memchr$VARIANT$Base (in /usr/lib/system/libsystem_platform.dylib)
==84530== by 0x10045BBA5: __sfvwrite (in /usr/lib/system/libsystem_c.dylib)
==84530== by 0x10045BF59: fwrite (in /usr/lib/system/libsystem_c.dylib)
==84530== by 0x1001952EB: std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) (in /usr/lib/libc++.1.dylib)
==84530== by 0x1001955C8: std::__1::num_put<char, std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > >::do_put(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::ios_base&, char, unsigned long) const (in /usr/lib/libc++.1.dylib)
==84530== by 0x1001893C5: std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(unsigned long) (in /usr/lib/libc++.1.dylib)
==84530== by 0x100041681: Catch::ConsoleReporter::printTotals(Catch::Totals const&) (in ./Zipper-test)
==84530== by 0x1000220AB: Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&) (in ./Zipper-test)
==84530== by 0x100027ED9: Catch::RunContext::~RunContext() (in ./Zipper-test)
==84530== by 0x10000E883: Catch::runTests(Catch::Ptr<Catch::Config> const&) (in ./Zipper-test)
==84530== by 0x100031443: Catch::Session::run() (in ./Zipper-test)
==84530== by 0x10001C9C7: main (in ./Zipper-test)
==84530== Uninitialised value was created by a stack allocation
==84530== at 0x10019549C: std::__1::num_put<char, std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > >::do_put(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, std::__1::ios_base&, char, unsigned long) const (in /usr/lib/libc++.1.dylib)
==84530==
All tests passed (42 assertions in 2 test cases)
==84530==
==84530== HEAP SUMMARY:
==84530== in use at exit: 46,139 bytes in 187 blocks
==84530== total heap usage: 2,470 allocs, 2,283 frees, 5,732,015 bytes allocated
==84530==
==84530== LEAK SUMMARY:
==84530== definitely lost: 27,064 bytes in 75 blocks
==84530== indirectly lost: 6,912 bytes in 9 blocks
==84530== possibly lost: 72 bytes in 3 blocks
==84530== still reachable: 4,480 bytes in 10 blocks
==84530== suppressed: 7,611 bytes in 90 blocks
==84530== Rerun with --leak-check=full to see details of leaked memory
==84530==
==84530== For counts of detected and suppressed errors, rerun with: -v
==84530== ERROR SUMMARY: 49 errors from 11 contexts (suppressed: 4 from 4)