error 0 4d76b8688005833b361d800ff564f1f24a90a1b00af16d1599025416236ca611 820750793 116160339195 4300000000 crypto_kem/lotus256/ref ==19521== Memcheck, a memory error detector ==19521== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==19521== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==19521== Command: ./try ==19521== ==19521== Warning: client switching stacks? SP change: 0x1ffeffff38 --> 0x1ffedddf28 ==19521== to suppress, use: --max-stackframe=2236432 or greater ==19521== Invalid write of size 8 ==19521== at 0x10A16C: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1FFF00006F: ??? ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffedddf28 is on thread 1's stack ==19521== in frame #0, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A84A: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45f30 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A861: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45f50 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A878: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45f70 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A88F: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45f90 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A8A8: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45fb0 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A8C1: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45fd0 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A91C: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45ff0 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A95D: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee46010 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10A99F: unpack_128elems (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B112: sample_uniform (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1AB: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee46020 is on thread 1's stack ==19521== in frame #3, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10B162: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1C2: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffedddf30 is on thread 1's stack ==19521== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid write of size 2 ==19521== at 0x10B162: sample_discrete_gaussian (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1D6: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffef97f30 is on thread 1's stack ==19521== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid read of size 2 ==19521== at 0x10B40D: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1E4: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffedddf30 is on thread 1's stack ==19521== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid read of size 2 ==19521== at 0x10B411: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1E4: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffee45f30 is on thread 1's stack ==19521== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== Invalid read of size 2 ==19521== at 0x10B416: submul (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10B1E4: lotus_cpa_pke_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A170: crypto_kem_lotus256_ref_keypair (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x1092AB: test (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== by 0x10A020: main (in /home/moritz/Uni/2015-2016/research-internship/letstrythisagain/supercop-20181113/bench/venus/work/compile/try) ==19521== Address 0x1ffef97f30 is on thread 1's stack ==19521== in frame #2, created by crypto_kem_lotus256_ref_keypair (???:) ==19521== ==19521== ==19521== More than 10000000 total errors detected. I'm not reporting any more. ==19521== Final error counts will be inaccurate. Go fix your program! ==19521== Rerun with --error-limit=no to disable this cutoff. Note ==19521== that errors may occur in your program without prior warning from ==19521== Valgrind, because errors are no longer being displayed. ==19521== ==19521== Warning: client switching stacks? SP change: 0x1ffedddf30 --> 0x1ffeffff38 ==19521== to suppress, use: --max-stackframe=2236424 or greater ==19521== Warning: client switching stacks? SP change: 0x1ffeffff28 --> 0x1ffeddcd40 ==19521== to suppress, use: --max-stackframe=2241000 or greater ==19521== further instances of this message will not be shown. ==19521== ==19521== HEAP SUMMARY: ==19521== in use at exit: 16,310,192 bytes in 12 blocks ==19521== total heap usage: 42 allocs, 30 frees, 16,329,320 bytes allocated ==19521== ==19521== LEAK SUMMARY: ==19521== definitely lost: 0 bytes in 0 blocks ==19521== indirectly lost: 0 bytes in 0 blocks ==19521== possibly lost: 16,309,760 bytes in 10 blocks ==19521== still reachable: 432 bytes in 2 blocks ==19521== suppressed: 0 bytes in 0 blocks ==19521== Rerun with --leak-check=full to see details of leaked memory ==19521== ==19521== For lists of detected and suppressed errors, rerun with: -s ==19521== ERROR SUMMARY: 10000000 errors from 15 contexts (suppressed: 0 from 0)