error 0 crypto_encrypt_open does not handle c=t overlap ==14729== Memcheck, a memory error detector ==14729== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==14729== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==14729== Command: ./try ==14729== ==14729== Warning: client switching stacks? SP change: 0x1ffeffff38 --> 0x1ffedddf28 ==14729== to suppress, use: --max-stackframe=2236432 or greater ==14729== Invalid write of size 8 ==14729== at 0x10AD61: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x1FFF00006F: ??? ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffedddf28 is on thread 1's stack ==14729== in frame #0, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10CFF2: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45f30 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D019: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45f50 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D041: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45f70 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D06F: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45f90 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D0A0: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45fb0 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D0D4: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45fd0 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D155: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45ff0 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D1BB: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee46010 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 8 ==14729== at 0x10D21E: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F8A5: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F956: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee46020 is on thread 1's stack ==14729== in frame #3, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 2 ==14729== at 0x10F8FF: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F96A: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffedddf30 is on thread 1's stack ==14729== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid write of size 2 ==14729== at 0x10F8FF: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F977: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffef97f30 is on thread 1's stack ==14729== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid read of size 2 ==14729== at 0x10FE3D: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F985: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffedddf30 is on thread 1's stack ==14729== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid read of size 2 ==14729== at 0x10FE41: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F985: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffee45f30 is on thread 1's stack ==14729== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== Invalid read of size 2 ==14729== at 0x10FE46: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10F985: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x10AD65: crypto_encrypt_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109653: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== by 0x109144: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==14729== Address 0x1ffef97f30 is on thread 1's stack ==14729== in frame #2, created by crypto_encrypt_lotus256_ref_keypair (???:) ==14729== ==14729== ==14729== More than 10000000 total errors detected. I'm not reporting any more. ==14729== Final error counts will be inaccurate. Go fix your program! ==14729== Rerun with --error-limit=no to disable this cutoff. Note ==14729== that errors may occur in your program without prior warning from ==14729== Valgrind, because errors are no longer being displayed. ==14729== ==14729== Warning: client switching stacks? SP change: 0x1ffedddf30 --> 0x1ffeffff38 ==14729== to suppress, use: --max-stackframe=2236424 or greater ==14729== Warning: client switching stacks? SP change: 0x1ffeffff00 --> 0x1ffeddcd60 ==14729== to suppress, use: --max-stackframe=2240928 or greater ==14729== further instances of this message will not be shown. ==14729== ==14729== HEAP SUMMARY: ==14729== in use at exit: 16,310,192 bytes in 12 blocks ==14729== total heap usage: 2,118 allocs, 2,106 frees, 16,418,976 bytes allocated ==14729== ==14729== LEAK SUMMARY: ==14729== definitely lost: 0 bytes in 0 blocks ==14729== indirectly lost: 0 bytes in 0 blocks ==14729== possibly lost: 16,309,760 bytes in 10 blocks ==14729== still reachable: 432 bytes in 2 blocks ==14729== suppressed: 0 bytes in 0 blocks ==14729== Rerun with --leak-check=full to see details of leaked memory ==14729== ==14729== For lists of detected and suppressed errors, rerun with: -s ==14729== ERROR SUMMARY: 10000000 errors from 15 contexts (suppressed: 0 from 0)