error 0 ==8512== Memcheck, a memory error detector ==8512== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==8512== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info ==8512== Command: ./try ==8512== ==8512== Warning: client switching stacks? SP change: 0x1ffeffff28 --> 0x1ffedddf18 ==8512== to suppress, use: --max-stackframe=2236432 or greater ==8512== Invalid write of size 8 ==8512== at 0x402246: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== Address 0x1ffedddf18 is on thread 1's stack ==8512== ==8512== Invalid write of size 2 ==8512== at 0x4029B7: unpack_128elems (pack.c:84) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45f20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x4029D8: unpack_128elems (pack.c:85) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45f40 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x4029F8: unpack_128elems (pack.c:86) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45f60 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x402A18: unpack_128elems (pack.c:87) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45f80 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x402A3B: unpack_128elems (pack.c:88) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45fa0 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x402A6B: unpack_128elems (pack.c:89) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45fc0 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x402AC2: unpack_128elems (pack.c:90) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45fe0 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x402B0E: unpack_128elems (pack.c:95) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee46000 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x402B5E: unpack_128elems (pack.c:98) ==8512== by 0x40339C: sample_uniform (sampler.c:163) ==8512== by 0x403456: lotus_cpa_pke_keypair (cpa-pke_opt.c:50) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee46010 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x4033FB: sample_discrete_gaussian (sampler.c:176) ==8512== by 0x40346A: lotus_cpa_pke_keypair (cpa-pke_opt.c:54) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffedddf20 is on thread 1's stack ==8512== in frame #2, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x4033FB: sample_discrete_gaussian (sampler.c:176) ==8512== by 0x40347F: lotus_cpa_pke_keypair (cpa-pke_opt.c:55) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffef97f20 is on thread 1's stack ==8512== in frame #2, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Warning: client switching stacks? SP change: 0x1ffeddde98 --> 0x1ffeb33680 ==8512== to suppress, use: --max-stackframe=2795544 or greater ==8512== Invalid write of size 8 ==8512== at 0x403A97: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb33688 is on thread 1's stack ==8512== in frame #0, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403AA4: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x4052AF: osfreq (osfreq.c:93) ==8512== Address 0x1ffeb33678 is on thread 1's stack ==8512== in frame #0, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403CC0: distribute_2x2_nn (lwe-arithmetics_opt.c:219) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45f20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403CC4: distribute_2x2_nn (lwe-arithmetics_opt.c:219) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffec03690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403CD8: distribute_2x2_nn (lwe-arithmetics_opt.c:219) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee45f24 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403CE0: distribute_2x2_nn (lwe-arithmetics_opt.c:221) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee46260 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403CE8: distribute_2x2_nn (lwe-arithmetics_opt.c:221) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffec57e90 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403CF7: distribute_2x2_nn (lwe-arithmetics_opt.c:221) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee46264 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403D50: distribute_2x2_nn (lwe-arithmetics_opt.c:225) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeeeef20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403D55: distribute_2x2_nn (lwe-arithmetics_opt.c:225) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffecac690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403D62: distribute_2x2_nn (lwe-arithmetics_opt.c:225) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeeeef24 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403D70: distribute_2x2_nn (lwe-arithmetics_opt.c:227) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeeef260 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403D73: distribute_2x2_nn (lwe-arithmetics_opt.c:227) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed00e90 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403D86: distribute_2x2_nn (lwe-arithmetics_opt.c:227) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeeef264 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 8 ==8512== at 0x403DB0: distribute_2x2_nn (lwe-arithmetics_opt.c:230) ==8512== by 0x403AA8: submul (lwe-arithmetics_opt.c:38) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb33678 is on thread 1's stack ==8512== in frame #0, created by distribute_2x2_nn (lwe-arithmetics_opt.c:215) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403DF0: distribute_2x2_nl (lwe-arithmetics_opt.c:243) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffedddf20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403DF4: distribute_2x2_nl (lwe-arithmetics_opt.c:243) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb9b690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E08: distribute_2x2_nl (lwe-arithmetics_opt.c:243) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffedddf24 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E10: distribute_2x2_nl (lwe-arithmetics_opt.c:245) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffedde020 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403E18: distribute_2x2_nl (lwe-arithmetics_opt.c:245) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffebb5690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E27: distribute_2x2_nl (lwe-arithmetics_opt.c:245) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffedde024 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E80: distribute_2x2_nl (lwe-arithmetics_opt.c:249) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee11f20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403E85: distribute_2x2_nl (lwe-arithmetics_opt.c:249) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffebcf690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E92: distribute_2x2_nl (lwe-arithmetics_opt.c:249) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee11f24 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403EA0: distribute_2x2_nl (lwe-arithmetics_opt.c:251) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee12020 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403EA3: distribute_2x2_nl (lwe-arithmetics_opt.c:251) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffebe9690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403EB6: distribute_2x2_nl (lwe-arithmetics_opt.c:251) ==8512== by 0x403ABB: submul (lwe-arithmetics_opt.c:39) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffee12024 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403DF0: distribute_2x2_nl (lwe-arithmetics_opt.c:243) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffef97f20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403DF4: distribute_2x2_nl (lwe-arithmetics_opt.c:243) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb33690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E08: distribute_2x2_nl (lwe-arithmetics_opt.c:243) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffef97f24 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E10: distribute_2x2_nl (lwe-arithmetics_opt.c:245) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffef98020 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403E18: distribute_2x2_nl (lwe-arithmetics_opt.c:245) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb4d690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E27: distribute_2x2_nl (lwe-arithmetics_opt.c:245) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffef98024 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E80: distribute_2x2_nl (lwe-arithmetics_opt.c:249) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffefcbf20 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403E85: distribute_2x2_nl (lwe-arithmetics_opt.c:249) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb67690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403E92: distribute_2x2_nl (lwe-arithmetics_opt.c:249) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffefcbf24 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403EA0: distribute_2x2_nl (lwe-arithmetics_opt.c:251) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffefcc020 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403EA3: distribute_2x2_nl (lwe-arithmetics_opt.c:251) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb81690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403EB6: distribute_2x2_nl (lwe-arithmetics_opt.c:251) ==8512== by 0x403ACB: submul (lwe-arithmetics_opt.c:40) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffefcc024 is on thread 1's stack ==8512== in frame #3, created by crypto_encrypt_lotus256_opt_keypair (encrypt.c:27) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403F00: submat_add_nn (lwe-arithmetics_opt.c:121) ==8512== by 0x403AEB: submul (lwe-arithmetics_opt.c:42) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed00e90 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403F04: submat_add_nn (lwe-arithmetics_opt.c:121) ==8512== by 0x403AEB: submul (lwe-arithmetics_opt.c:42) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffecac690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403F08: submat_add_nn (lwe-arithmetics_opt.c:121) ==8512== by 0x403AEB: submul (lwe-arithmetics_opt.c:42) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed89690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403F15: submat_add_nn (lwe-arithmetics_opt.c:121) ==8512== by 0x403AEB: submul (lwe-arithmetics_opt.c:42) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed00e94 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403F30: submat_sub_nl (lwe-arithmetics_opt.c:145) ==8512== by 0x403B06: submul (lwe-arithmetics_opt.c:43) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffebb5690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403F34: submat_sub_nl (lwe-arithmetics_opt.c:145) ==8512== by 0x403B06: submul (lwe-arithmetics_opt.c:43) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffeb9b690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 2 ==8512== at 0x403F38: submat_sub_nl (lwe-arithmetics_opt.c:145) ==8512== by 0x403B06: submul (lwe-arithmetics_opt.c:43) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed6f690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403F45: submat_sub_nl (lwe-arithmetics_opt.c:145) ==8512== by 0x403B06: submul (lwe-arithmetics_opt.c:43) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffebb5694 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F67: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55780 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F6F: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55770 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F77: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55760 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F7F: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55750 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F87: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55740 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F8F: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55730 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F97: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55720 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403F9F: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55710 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FA7: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55700 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FAC: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed556f0 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FB1: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed556e0 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FB6: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed556d0 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FBB: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed556c0 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FC0: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed556b0 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FC5: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed556a0 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid write of size 8 ==8512== at 0x403FCA: submat_negmul (lwe-arithmetics_opt.c:156) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403FF0: submat_negmul (lwe-arithmetics_opt.c:160) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed6f690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403FF5: submat_negmul (lwe-arithmetics_opt.c:160) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed89690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x403FFB: submat_negmul (lwe-arithmetics_opt.c:160) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed55690 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== Invalid read of size 2 ==8512== at 0x404009: submat_negmul (lwe-arithmetics_opt.c:159) ==8512== by 0x403B1C: submul (lwe-arithmetics_opt.c:44) ==8512== by 0x40348D: lotus_cpa_pke_keypair (cpa-pke_opt.c:57) ==8512== by 0x40224A: crypto_encrypt_lotus256_opt_keypair (encrypt.c:32) ==8512== by 0x401383: test (try.c:108) ==8512== by 0x401EB2: main (try-anything.c:295) ==8512== Address 0x1ffed6f694 is on thread 1's stack ==8512== in frame #1, created by submul (lwe-arithmetics_opt.c:29) ==8512== ==8512== ==8512== More than 10000000 total errors detected. I'm not reporting any more. ==8512== Final error counts will be inaccurate. Go fix your program! ==8512== Rerun with --error-limit=no to disable this cutoff. Note ==8512== that errors may occur in your program without prior warning from ==8512== Valgrind, because errors are no longer being displayed. ==8512== ==8512== Warning: client switching stacks? SP change: 0x1ffeb33680 --> 0x1ffeddde98 ==8512== to suppress, use: --max-stackframe=2795544 or greater ==8512== further instances of this message will not be shown. Alarm clock ==8512== ==8512== Process terminating with default action of signal 15 (SIGTERM) ==8512== at 0x4029F0: unpack_128elems (pack.c:86) ==8512== by 0x40352A: lotus_cpa_pke_enc_packed (cpa-pke_opt.c:78) ==8512== by 0x40238E: crypto_encrypt_lotus256_opt (encrypt.c:78) ==8512== by 0x401279: timecop_doit (try.c:93) ==8512== by 0x401F10: main (try-anything.c:306) ==8512== ==8512== HEAP SUMMARY: ==8512== in use at exit: 16,376,984 bytes in 2,081 blocks ==8512== total heap usage: 20,469 allocs, 18,388 frees, 25,345,121 bytes allocated ==8512==