Output save_alt Download

Operation
crypto_kem
Primitive
lotus256
Implementation
ref
Compiler options
clang -O1 -g
Host
venus
1 error 0
2 4d76b8688005833b361d800ff564f1f24a90a1b00af16d1599025416236ca611 836248655 146361346514 4300000000 crypto_kem/lotus256/ref
3 ==18361== Memcheck, a memory error detector
4 ==18361== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
5 ==18361== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info
6 ==18361== Command: ./try
7 ==18361==
8 ==18361== Warning: client switching stacks? SP change: 0x1ffeffff28 --> 0x1ffedddf18
9 ==18361== to suppress, use: --max-stackframe=2236432 or greater
10 ==18361== Invalid write of size 8
11 ==18361== at 0x401F26: crypto_kem_lotus256_ref_keypair (kem.c:35)
12 ==18361== Address 0x1ffedddf18 is on thread 1's stack
13 ==18361==
14 ==18361== Invalid write of size 2
15 ==18361== at 0x402707: unpack_128elems (pack.c:84)
16 ==18361== by 0x403101: sample_uniform (sampler.c:163)
17 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
18 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
19 ==18361== by 0x401116: test (try.c:108)
20 ==18361== by 0x401B92: main (try-anything.c:295)
21 ==18361== Address 0x1ffee45f20 is on thread 1's stack
22 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
23 ==18361==
24 ==18361== Invalid write of size 2
25 ==18361== at 0x402728: unpack_128elems (pack.c:85)
26 ==18361== by 0x403101: sample_uniform (sampler.c:163)
27 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
28 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
29 ==18361== by 0x401116: test (try.c:108)
30 ==18361== by 0x401B92: main (try-anything.c:295)
31 ==18361== Address 0x1ffee45f40 is on thread 1's stack
32 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
33 ==18361==
34 ==18361== Invalid write of size 2
35 ==18361== at 0x402748: unpack_128elems (pack.c:86)
36 ==18361== by 0x403101: sample_uniform (sampler.c:163)
37 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
38 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
39 ==18361== by 0x401116: test (try.c:108)
40 ==18361== by 0x401B92: main (try-anything.c:295)
41 ==18361== Address 0x1ffee45f60 is on thread 1's stack
42 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
43 ==18361==
44 ==18361== Invalid write of size 2
45 ==18361== at 0x402768: unpack_128elems (pack.c:87)
46 ==18361== by 0x403101: sample_uniform (sampler.c:163)
47 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
48 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
49 ==18361== by 0x401116: test (try.c:108)
50 ==18361== by 0x401B92: main (try-anything.c:295)
51 ==18361== Address 0x1ffee45f80 is on thread 1's stack
52 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
53 ==18361==
54 ==18361== Invalid write of size 2
55 ==18361== at 0x40278B: unpack_128elems (pack.c:88)
56 ==18361== by 0x403101: sample_uniform (sampler.c:163)
57 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
58 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
59 ==18361== by 0x401116: test (try.c:108)
60 ==18361== by 0x401B92: main (try-anything.c:295)
61 ==18361== Address 0x1ffee45fa0 is on thread 1's stack
62 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
63 ==18361==
64 ==18361== Invalid write of size 2
65 ==18361== at 0x4027BB: unpack_128elems (pack.c:89)
66 ==18361== by 0x403101: sample_uniform (sampler.c:163)
67 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
68 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
69 ==18361== by 0x401116: test (try.c:108)
70 ==18361== by 0x401B92: main (try-anything.c:295)
71 ==18361== Address 0x1ffee45fc0 is on thread 1's stack
72 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
73 ==18361==
74 ==18361== Invalid write of size 2
75 ==18361== at 0x402812: unpack_128elems (pack.c:90)
76 ==18361== by 0x403101: sample_uniform (sampler.c:163)
77 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
78 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
79 ==18361== by 0x401116: test (try.c:108)
80 ==18361== by 0x401B92: main (try-anything.c:295)
81 ==18361== Address 0x1ffee45fe0 is on thread 1's stack
82 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
83 ==18361==
84 ==18361== Invalid write of size 2
85 ==18361== at 0x40285E: unpack_128elems (pack.c:95)
86 ==18361== by 0x403101: sample_uniform (sampler.c:163)
87 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
88 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
89 ==18361== by 0x401116: test (try.c:108)
90 ==18361== by 0x401B92: main (try-anything.c:295)
91 ==18361== Address 0x1ffee46000 is on thread 1's stack
92 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
93 ==18361==
94 ==18361== Invalid write of size 2
95 ==18361== at 0x4028AE: unpack_128elems (pack.c:98)
96 ==18361== by 0x403101: sample_uniform (sampler.c:163)
97 ==18361== by 0x4031B6: lotus_cpa_pke_keypair (cpa-pke.c:49)
98 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
99 ==18361== by 0x401116: test (try.c:108)
100 ==18361== by 0x401B92: main (try-anything.c:295)
101 ==18361== Address 0x1ffee46010 is on thread 1's stack
102 ==18361== in frame #3, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
103 ==18361==
104 ==18361== Invalid write of size 2
105 ==18361== at 0x40315B: sample_discrete_gaussian (sampler.c:176)
106 ==18361== by 0x4031CA: lotus_cpa_pke_keypair (cpa-pke.c:53)
107 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
108 ==18361== by 0x401116: test (try.c:108)
109 ==18361== by 0x401B92: main (try-anything.c:295)
110 ==18361== Address 0x1ffedddf20 is on thread 1's stack
111 ==18361== in frame #2, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
112 ==18361==
113 ==18361== Invalid write of size 2
114 ==18361== at 0x40315B: sample_discrete_gaussian (sampler.c:176)
115 ==18361== by 0x4031DF: lotus_cpa_pke_keypair (cpa-pke.c:54)
116 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
117 ==18361== by 0x401116: test (try.c:108)
118 ==18361== by 0x401B92: main (try-anything.c:295)
119 ==18361== Address 0x1ffef97f20 is on thread 1's stack
120 ==18361== in frame #2, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
121 ==18361==
122 ==18361== Invalid read of size 2
123 ==18361== at 0x403440: submul (lwe-arithmetics.c:18)
124 ==18361== by 0x4031ED: lotus_cpa_pke_keypair (cpa-pke.c:56)
125 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
126 ==18361== by 0x401116: test (try.c:108)
127 ==18361== by 0x401B92: main (try-anything.c:295)
128 ==18361== Address 0x1ffedddf20 is on thread 1's stack
129 ==18361== in frame #2, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
130 ==18361==
131 ==18361== Invalid read of size 2
132 ==18361== at 0x403443: submul (lwe-arithmetics.c:18)
133 ==18361== by 0x4031ED: lotus_cpa_pke_keypair (cpa-pke.c:56)
134 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
135 ==18361== by 0x401116: test (try.c:108)
136 ==18361== by 0x401B92: main (try-anything.c:295)
137 ==18361== Address 0x1ffee45f20 is on thread 1's stack
138 ==18361== in frame #2, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
139 ==18361==
140 ==18361== Invalid read of size 2
141 ==18361== at 0x403449: submul (lwe-arithmetics.c:17)
142 ==18361== by 0x4031ED: lotus_cpa_pke_keypair (cpa-pke.c:56)
143 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
144 ==18361== by 0x401116: test (try.c:108)
145 ==18361== by 0x401B92: main (try-anything.c:295)
146 ==18361== Address 0x1ffef97f20 is on thread 1's stack
147 ==18361== in frame #2, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
148 ==18361==
149 ==18361== Invalid read of size 2
150 ==18361== at 0x403457: submul (lwe-arithmetics.c:16)
151 ==18361== by 0x4031ED: lotus_cpa_pke_keypair (cpa-pke.c:56)
152 ==18361== by 0x401F2A: crypto_kem_lotus256_ref_keypair (kem.c:35)
153 ==18361== by 0x401116: test (try.c:108)
154 ==18361== by 0x401B92: main (try-anything.c:295)
155 ==18361== Address 0x1ffedddf24 is on thread 1's stack
156 ==18361== in frame #2, created by crypto_kem_lotus256_ref_keypair (kem.c:30)
157 ==18361==
158 ==18361==
159 ==18361== More than 10000000 total errors detected. I'm not reporting any more.
160 ==18361== Final error counts will be inaccurate. Go fix your program!
161 ==18361== Rerun with --error-limit=no to disable this cutoff. Note
162 ==18361== that errors may occur in your program without prior warning from
163 ==18361== Valgrind, because errors are no longer being displayed.
164 ==18361==
165 ==18361== Warning: client switching stacks? SP change: 0x1ffedddf20 --> 0x1ffeffff28
166 ==18361== to suppress, use: --max-stackframe=2236424 or greater
167 ==18361== Warning: client switching stacks? SP change: 0x1ffeffff18 --> 0x1ffeddcd40
168 ==18361== to suppress, use: --max-stackframe=2240984 or greater
169 ==18361== further instances of this message will not be shown.
170 ==18361==
171 ==18361== HEAP SUMMARY:
172 ==18361== in use at exit: 16,310,192 bytes in 12 blocks
173 ==18361== total heap usage: 42 allocs, 30 frees, 16,329,320 bytes allocated
174 ==18361==
175 ==18361== LEAK SUMMARY:
176 ==18361== definitely lost: 0 bytes in 0 blocks
177 ==18361== indirectly lost: 0 bytes in 0 blocks
178 ==18361== possibly lost: 16,309,760 bytes in 10 blocks
179 ==18361== still reachable: 432 bytes in 2 blocks
180 ==18361== suppressed: 0 bytes in 0 blocks
181 ==18361== Rerun with --leak-check=full to see details of leaked memory
182 ==18361==
183 ==18361== For lists of detected and suppressed errors, rerun with: -s
184 ==18361== ERROR SUMMARY: 10000000 errors from 16 contexts (suppressed: 0 from 0)