error 0 45a08b96f8877e959667869f9e231038641bbac5cbca37645f0d753c4f549378 393029348 3875956235 4300000000 crypto_aead/riverkeyakv2/ref ==10614== Memcheck, a memory error detector ==10614== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==10614== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==10614== Command: ./try ==10614== ==10614== Mismatched free() / delete / delete [] ==10614== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==10614== by 0x40A07E: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==10614== by 0x408E9E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==10614== by 0x404CD6: crypto_aead_riverkeyakv2_ref_encrypt (encrypt.cpp:41) ==10614== by 0x403124: test() (try.cpp:126) ==10614== by 0x404832: main (try-anything.cpp:295) ==10614== Address 0x656f760 is 0 bytes inside a block of size 100 alloc'd ==10614== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==10614== by 0x40931F: Piston::Piston(Permutation const*, unsigned int, unsigned int) (Motorist.cpp:43) ==10614== by 0x40A05F: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==10614== by 0x408E9E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==10614== by 0x404CD6: crypto_aead_riverkeyakv2_ref_encrypt (encrypt.cpp:41) ==10614== by 0x403124: test() (try.cpp:126) ==10614== by 0x404832: main (try-anything.cpp:295) ==10614== ==10614== Mismatched free() / delete / delete [] ==10614== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==10614== by 0x4056AF: void std::_Destroy_aux::__destroy(Piston*, Piston*) (stl_construct.h:103) ==10614== by 0x405571: std::vector >::~vector() (stl_vector.h:426) ==10614== by 0x40546F: Keyak::~Keyak() (Keyakv2.h:26) ==10614== by 0x404E9E: crypto_aead_riverkeyakv2_ref_encrypt (encrypt.cpp:50) ==10614== by 0x403124: test() (try.cpp:126) ==10614== by 0x404832: main (try-anything.cpp:295) ==10614== Address 0x656f880 is 0 bytes inside a block of size 100 alloc'd ==10614== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==10614== by 0x4094B1: Piston::Piston(Piston const&) (Motorist.cpp:57) ==10614== by 0x40B132: Piston* std::__uninitialized_fill_n::__uninit_fill_n(Piston*, unsigned long, Piston const&) (stl_uninitialized.h:202) ==10614== by 0x40B009: std::vector >::_M_fill_initialize(unsigned long, Piston const&) (stl_vector.h:1299) ==10614== by 0x40A953: std::vector >::vector(unsigned long, Piston const&, std::allocator const&) (stl_vector.h:308) ==10614== by 0x40A074: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==10614== by 0x408E9E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==10614== by 0x404CD6: crypto_aead_riverkeyakv2_ref_encrypt (encrypt.cpp:41) ==10614== by 0x403124: test() (try.cpp:126) ==10614== by 0x404832: main (try-anything.cpp:295) ==10614== ==10614== Mismatched free() / delete / delete [] ==10614== at 0x4C2D4EA: operator delete(void*) (vg_replace_malloc.c:586) ==10614== by 0x40A07E: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==10614== by 0x408E9E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==10614== by 0x4051A2: crypto_aead_riverkeyakv2_ref_decrypt (encrypt.cpp:72) ==10614== by 0x40380B: test() (try.cpp:182) ==10614== by 0x404832: main (try-anything.cpp:295) ==10614== Address 0x67745c0 is 0 bytes inside a block of size 100 alloc'd ==10614== at 0x4C2CBB9: operator new[](unsigned long) (vg_replace_malloc.c:433) ==10614== by 0x40931F: Piston::Piston(Permutation const*, unsigned int, unsigned int) (Motorist.cpp:43) ==10614== by 0x40A05F: Motorist::Motorist(Permutation const*, unsigned int, unsigned int, unsigned int, unsigned int) (Motorist.cpp:200) ==10614== by 0x408E9E: Keyak::Keyak(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (Keyakv2.cpp:21) ==10614== by 0x4051A2: crypto_aead_riverkeyakv2_ref_decrypt (encrypt.cpp:72) ==10614== by 0x40380B: test() (try.cpp:182) ==10614== by 0x404832: main (try-anything.cpp:295) ==10614== ==10614== Conditional jump or move depends on uninitialised value(s) ==10614== at 0x4C32742: __memcmp_sse4_1 (vg_replace_strmem.c:1112) ==10614== by 0x40B220: _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ (basic_string.h:5076) ==10614== by 0x40A9B5: bool std::operator!=, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) (basic_string.h:5115) ==10614== by 0x40A366: Motorist::HandleTag(bool, std::__cxx11::basic_stringstream, std::allocator >&, bool) (Motorist.cpp:257) ==10614== by 0x40A5BB: Motorist::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Motorist.cpp:232) ==10614== by 0x409105: Keyak::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Keyakv2.cpp:44) ==10614== by 0x40520A: crypto_aead_riverkeyakv2_ref_decrypt (encrypt.cpp:74) ==10614== by 0x402FD7: timecop_doit() (try.cpp:107) ==10614== by 0x404890: main (try-anything.cpp:306) ==10614== Uninitialised value was created by a client request ==10614== at 0x402E77: timecop_doit() (try.cpp:102) ==10614== by 0x404890: main (try-anything.cpp:306) ==10614== ==10614== Conditional jump or move depends on uninitialised value(s) ==10614== at 0x4C32756: __memcmp_sse4_1 (vg_replace_strmem.c:1112) ==10614== by 0x40B220: _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ (basic_string.h:5076) ==10614== by 0x40A9B5: bool std::operator!=, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) (basic_string.h:5115) ==10614== by 0x40A366: Motorist::HandleTag(bool, std::__cxx11::basic_stringstream, std::allocator >&, bool) (Motorist.cpp:257) ==10614== by 0x40A5BB: Motorist::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Motorist.cpp:232) ==10614== by 0x409105: Keyak::Wrap(std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, std::istream&, std::__cxx11::basic_stringstream, std::allocator >&, bool, bool) (Keyakv2.cpp:44) ==10614== by 0x40520A: crypto_aead_riverkeyakv2_ref_decrypt (encrypt.cpp:74) ==10614== by 0x402FD7: timecop_doit() (try.cpp:107) ==10614== by 0x404890: main (try-anything.cpp:306) ==10614== Uninitialised value was created by a client request ==10614== at 0x402E77: timecop_doit() (try.cpp:102) ==10614== by 0x404890: main (try-anything.cpp:306) ==10614== ==10614== ==10614== HEAP SUMMARY: ==10614== in use at exit: 69,888 bytes in 16 blocks ==10614== total heap usage: 43,792 allocs, 43,776 frees, 4,143,893 bytes allocated ==10614== ==10614== LEAK SUMMARY: ==10614== definitely lost: 0 bytes in 0 blocks ==10614== indirectly lost: 0 bytes in 0 blocks ==10614== possibly lost: 69,888 bytes in 16 blocks ==10614== still reachable: 0 bytes in 0 blocks ==10614== suppressed: 0 bytes in 0 blocks ==10614== Rerun with --leak-check=full to see details of leaked memory ==10614== ==10614== For lists of detected and suppressed errors, rerun with: -s ==10614== ERROR SUMMARY: 52 errors from 5 contexts (suppressed: 0 from 0)