Skip to content

Commit b971006

Browse files
committed
Review
1 parent 8d400f4 commit b971006

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/sha3module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ SHA3_TYPE_SPEC(sha3_512_spec, "sha3_512", sha3_512_slots);
471471
static int
472472
sha3_shake_check_digest_length(Py_ssize_t length)
473473
{
474+
assert(length >= 0);
474475
if ((size_t)length >= (1 << 29)) {
475476
/*
476477
* Raise OverflowError to match the semantics of OpenSSL SHAKE

0 commit comments

Comments
 (0)