error 0 073df74c9d039ad66a6e329bfd61d7cd5e5e50776384fe12c75874e62d1f4024 544525660 5346292780 4300000000 crypto_aead/lunarkeyakv2/refnew ==18658== Memcheck, a memory error detector ==18658== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==18658== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==18658== Command: ./try ==18658== ==18658== Mismatched free() / delete / delete [] ==18658== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==18658== by 0x40A50D: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:177) ==18658== by 0x409029: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==18658== by 0x404CD6: crypto_aead_lunarkeyakv2_refnew_encrypt (encrypt.cpp:41) ==18658== by 0x403164: test() (try.cpp:126) ==18658== by 0x404832: main (try-anything.cpp:295) ==18658== Address 0x656f7c0 is 0 bytes inside a block of size 200 alloc'd ==18658== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==18658== by 0x40997E: Piston::Piston(Permutation const*, unsigned int, unsigned int) (Motorist.cpp:47) ==18658== by 0x40A4EE: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:177) ==18658== by 0x409029: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==18658== by 0x404CD6: crypto_aead_lunarkeyakv2_refnew_encrypt (encrypt.cpp:41) ==18658== by 0x403164: test() (try.cpp:126) ==18658== by 0x404832: main (try-anything.cpp:295) ==18658== ==18658== Mismatched free() / delete / delete [] ==18658== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==18658== by 0x4055AF: void std::_Destroy_aux::__destroy(Piston*, Piston*) (stl_construct.h:103) ==18658== by 0x405521: std::vector >::~vector() (stl_vector.h:426) ==18658== by 0x40546F: Keyak::~Keyak() (Keyakv2.h:26) ==18658== by 0x404E9E: crypto_aead_lunarkeyakv2_refnew_encrypt (encrypt.cpp:50) ==18658== by 0x403164: test() (try.cpp:126) ==18658== by 0x404832: main (try-anything.cpp:295) ==18658== Address 0x656fa90 is 0 bytes inside a block of size 200 alloc'd ==18658== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==18658== by 0x409BEB: Piston::Piston(Piston const&) (Motorist.cpp:62) ==18658== by 0x40AE12: Piston* std::__uninitialized_fill_n::__uninit_fill_n(Piston*, unsigned long, Piston const&) (stl_uninitialized.h:202) ==18658== by 0x40ACE9: std::vector >::_M_fill_initialize(unsigned long, Piston const&) (stl_vector.h:1299) ==18658== by 0x40ABB3: std::vector >::vector(unsigned long, Piston const&, std::allocator const&) (stl_vector.h:308) ==18658== by 0x40A503: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:177) ==18658== by 0x409029: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==18658== by 0x404CD6: crypto_aead_lunarkeyakv2_refnew_encrypt (encrypt.cpp:41) ==18658== by 0x403164: test() (try.cpp:126) ==18658== by 0x404832: main (try-anything.cpp:295) ==18658== ==18658== Mismatched free() / delete / delete [] ==18658== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==18658== by 0x40A50D: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:177) ==18658== by 0x409029: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==18658== by 0x4051A2: crypto_aead_lunarkeyakv2_refnew_decrypt (encrypt.cpp:72) ==18658== by 0x40382F: test() (try.cpp:182) ==18658== by 0x404832: main (try-anything.cpp:295) ==18658== Address 0x682a0e0 is 0 bytes inside a block of size 200 alloc'd ==18658== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==18658== by 0x40997E: Piston::Piston(Permutation const*, unsigned int, unsigned int) (Motorist.cpp:47) ==18658== by 0x40A4EE: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:177) ==18658== by 0x409029: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==18658== by 0x4051A2: crypto_aead_lunarkeyakv2_refnew_decrypt (encrypt.cpp:72) ==18658== by 0x40382F: test() (try.cpp:182) ==18658== by 0x404832: main (try-anything.cpp:295) ==18658== ==18658== Conditional jump or move depends on uninitialised value(s) ==18658== at 0x4C32742: __memcmp_sse4_1 (vg_replace_strmem.c:1112) ==18658== by 0x40B170: _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ (basic_string.h:5076) ==18658== by 0x40AC75: bool std::operator!=, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) (basic_string.h:5115) ==18658== by 0x40A7A6: Motorist::HandleTag(bool, std::__cxx11::basic_stringstream, std::allocator >&, bool) (Motorist.cpp:227) ==18658== by 0x40A989: Motorist::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Motorist.cpp:202) ==18658== by 0x409305: Keyak::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Keyakv2.cpp:49) ==18658== by 0x40520A: crypto_aead_lunarkeyakv2_refnew_decrypt (encrypt.cpp:74) ==18658== by 0x403017: timecop_doit() (try.cpp:107) ==18658== by 0x404890: main (try-anything.cpp:306) ==18658== Uninitialised value was created by a client request ==18658== at 0x402EB7: timecop_doit() (try.cpp:102) ==18658== by 0x404890: main (try-anything.cpp:306) ==18658== ==18658== Conditional jump or move depends on uninitialised value(s) ==18658== at 0x4C32756: __memcmp_sse4_1 (vg_replace_strmem.c:1112) ==18658== by 0x40B170: _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ (basic_string.h:5076) ==18658== by 0x40AC75: bool std::operator!=, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) (basic_string.h:5115) ==18658== by 0x40A7A6: Motorist::HandleTag(bool, std::__cxx11::basic_stringstream, std::allocator >&, bool) (Motorist.cpp:227) ==18658== by 0x40A989: Motorist::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Motorist.cpp:202) ==18658== by 0x409305: Keyak::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Keyakv2.cpp:49) ==18658== by 0x40520A: crypto_aead_lunarkeyakv2_refnew_decrypt (encrypt.cpp:74) ==18658== by 0x403017: timecop_doit() (try.cpp:107) ==18658== by 0x404890: main (try-anything.cpp:306) ==18658== Uninitialised value was created by a client request ==18658== at 0x402EB7: timecop_doit() (try.cpp:102) ==18658== by 0x404890: main (try-anything.cpp:306) ==18658== ==18658== ==18658== HEAP SUMMARY: ==18658== in use at exit: 69,888 bytes in 16 blocks ==18658== total heap usage: 58,064 allocs, 58,048 frees, 5,730,389 bytes allocated ==18658== ==18658== LEAK SUMMARY: ==18658== definitely lost: 0 bytes in 0 blocks ==18658== indirectly lost: 0 bytes in 0 blocks ==18658== possibly lost: 69,888 bytes in 16 blocks ==18658== still reachable: 0 bytes in 0 blocks ==18658== suppressed: 0 bytes in 0 blocks ==18658== Rerun with --leak-check=full to see details of leaked memory ==18658== ==18658== For lists of detected and suppressed errors, rerun with: -s ==18658== ERROR SUMMARY: 220 errors from 5 contexts (suppressed: 0 from 0)