Skip to content

Commit a4cfae5

Browse files
committed
Debug: Add bounds assertions in polyvec.c
- This commit is ported from mlkem PR #214 - All implementations of functions in polyvec.c have bounds assertions for inputs and outputs added that match the CBMC specifications. Signed-off-by: willieyz <[email protected]>
1 parent 969dfc4 commit a4cfae5

File tree

2 files changed

+94
-2
lines changed

2 files changed

+94
-2
lines changed

mldsa/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void mld_debug_check_bounds(const char *file, int line, const int32_t *ptr,
4040
fprintf(stderr,
4141
MLD_DEBUG_ERROR_HEADER
4242
"Bounds assertion failed: Index %u, value %d out of bounds "
43-
"(%ld,%ld)\n",
43+
"(%lld,%lld)\n",
4444
file, line, i, (int)val, lower_bound_exclusive,
4545
upper_bound_exclusive);
4646
err = 1;

0 commit comments

Comments
 (0)