error 0 073df74c9d039ad66a6e329bfd61d7cd5e5e50776384fe12c75874e62d1f4024 511239516 5426184430 4300000000 crypto_aead/lunarkeyakv2/ref ==17064== Memcheck, a memory error detector ==17064== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==17064== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==17064== Command: ./try ==17064== ==17064== Mismatched free() / delete / delete [] ==17064== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==17064== by 0x40A03E: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==17064== by 0x408E5E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==17064== by 0x404C96: crypto_aead_lunarkeyakv2_ref_encrypt (encrypt.cpp:41) ==17064== by 0x403124: test() (try.cpp:126) ==17064== by 0x4047F2: main (try-anything.cpp:295) ==17064== Address 0x656f7c0 is 0 bytes inside a block of size 200 alloc'd ==17064== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==17064== by 0x4092DF: Piston::Piston(Permutation const*, unsigned int, unsigned int) (Motorist.cpp:43) ==17064== by 0x40A01F: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==17064== by 0x408E5E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==17064== by 0x404C96: crypto_aead_lunarkeyakv2_ref_encrypt (encrypt.cpp:41) ==17064== by 0x403124: test() (try.cpp:126) ==17064== by 0x4047F2: main (try-anything.cpp:295) ==17064== ==17064== Mismatched free() / delete / delete [] ==17064== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==17064== by 0x40566F: void std::_Destroy_aux::__destroy(Piston*, Piston*) (stl_construct.h:103) ==17064== by 0x405531: std::vector >::~vector() (stl_vector.h:426) ==17064== by 0x40542F: Keyak::~Keyak() (Keyakv2.h:26) ==17064== by 0x404E5E: crypto_aead_lunarkeyakv2_ref_encrypt (encrypt.cpp:50) ==17064== by 0x403124: test() (try.cpp:126) ==17064== by 0x4047F2: main (try-anything.cpp:295) ==17064== Address 0x656fa50 is 0 bytes inside a block of size 200 alloc'd ==17064== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==17064== by 0x409471: Piston::Piston(Piston const&) (Motorist.cpp:57) ==17064== by 0x40B0F2: Piston* std::__uninitialized_fill_n::__uninit_fill_n(Piston*, unsigned long, Piston const&) (stl_uninitialized.h:202) ==17064== by 0x40AFC9: std::vector >::_M_fill_initialize(unsigned long, Piston const&) (stl_vector.h:1299) ==17064== by 0x40A913: std::vector >::vector(unsigned long, Piston const&, std::allocator const&) (stl_vector.h:308) ==17064== by 0x40A034: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==17064== by 0x408E5E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==17064== by 0x404C96: crypto_aead_lunarkeyakv2_ref_encrypt (encrypt.cpp:41) ==17064== by 0x403124: test() (try.cpp:126) ==17064== by 0x4047F2: main (try-anything.cpp:295) ==17064== ==17064== Mismatched free() / delete / delete [] ==17064== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==17064== by 0x40A03E: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==17064== by 0x408E5E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==17064== by 0x405162: crypto_aead_lunarkeyakv2_ref_decrypt (encrypt.cpp:72) ==17064== by 0x4037EF: test() (try.cpp:182) ==17064== by 0x4047F2: main (try-anything.cpp:295) ==17064== Address 0x682a9a0 is 0 bytes inside a block of size 200 alloc'd ==17064== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==17064== by 0x4092DF: Piston::Piston(Permutation const*, unsigned int, unsigned int) (Motorist.cpp:43) ==17064== by 0x40A01F: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==17064== by 0x408E5E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==17064== by 0x405162: crypto_aead_lunarkeyakv2_ref_decrypt (encrypt.cpp:72) ==17064== by 0x4037EF: test() (try.cpp:182) ==17064== by 0x4047F2: main (try-anything.cpp:295) ==17064== ==17064== Conditional jump or move depends on uninitialised value(s) ==17064== at 0x4C32742: __memcmp_sse4_1 (vg_replace_strmem.c:1112) ==17064== by 0x40B1E0: _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ (basic_string.h:5076) ==17064== by 0x40A975: bool std::operator!=, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) (basic_string.h:5115) ==17064== by 0x40A326: Motorist::HandleTag(bool, std::__cxx11::basic_stringstream, std::allocator >&, bool) (Motorist.cpp:257) ==17064== by 0x40A57B: Motorist::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Motorist.cpp:232) ==17064== by 0x4090C5: Keyak::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Keyakv2.cpp:44) ==17064== by 0x4051CA: crypto_aead_lunarkeyakv2_ref_decrypt (encrypt.cpp:74) ==17064== by 0x402FD7: timecop_doit() (try.cpp:107) ==17064== by 0x404850: main (try-anything.cpp:306) ==17064== Uninitialised value was created by a client request ==17064== at 0x402E77: timecop_doit() (try.cpp:102) ==17064== by 0x404850: main (try-anything.cpp:306) ==17064== ==17064== Conditional jump or move depends on uninitialised value(s) ==17064== at 0x4C32756: __memcmp_sse4_1 (vg_replace_strmem.c:1112) ==17064== by 0x40B1E0: _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ (basic_string.h:5076) ==17064== by 0x40A975: bool std::operator!=, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) (basic_string.h:5115) ==17064== by 0x40A326: Motorist::HandleTag(bool, std::__cxx11::basic_stringstream, std::allocator >&, bool) (Motorist.cpp:257) ==17064== by 0x40A57B: Motorist::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Motorist.cpp:232) ==17064== by 0x4090C5: Keyak::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Keyakv2.cpp:44) ==17064== by 0x4051CA: crypto_aead_lunarkeyakv2_ref_decrypt (encrypt.cpp:74) ==17064== by 0x402FD7: timecop_doit() (try.cpp:107) ==17064== by 0x404850: main (try-anything.cpp:306) ==17064== Uninitialised value was created by a client request ==17064== at 0x402E77: timecop_doit() (try.cpp:102) ==17064== by 0x404850: main (try-anything.cpp:306) ==17064== ==17064== ==17064== HEAP SUMMARY: ==17064== in use at exit: 69,888 bytes in 16 blocks ==17064== total heap usage: 58,160 allocs, 58,144 frees, 5,731,925 bytes allocated ==17064== ==17064== LEAK SUMMARY: ==17064== definitely lost: 0 bytes in 0 blocks ==17064== indirectly lost: 0 bytes in 0 blocks ==17064== possibly lost: 69,888 bytes in 16 blocks ==17064== still reachable: 0 bytes in 0 blocks ==17064== suppressed: 0 bytes in 0 blocks ==17064== Rerun with --leak-check=full to see details of leaked memory ==17064== ==17064== For lists of detected and suppressed errors, rerun with: -s ==17064== ERROR SUMMARY: 220 errors from 5 contexts (suppressed: 0 from 0)