From e4d2cd3fa214d29f6ceda60c62371b6e05f90042 Mon Sep 17 00:00:00 2001 From: Ted Blackman Date: Fri, 6 Nov 2020 15:06:46 -0500 Subject: [PATCH] vere/aes_siv: check claimed length --- pkg/urbit/jets/e/aes_siv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/urbit/jets/e/aes_siv.c b/pkg/urbit/jets/e/aes_siv.c index b31ab84cf3..6fc2cf5bd2 100644 --- a/pkg/urbit/jets/e/aes_siv.c +++ b/pkg/urbit/jets/e/aes_siv.c @@ -327,7 +327,10 @@ u3qea_sivc_de(u3_atom key, u3_atom txt) { c3_y key_y[64]; - if (u3r_met(3, key) > 64) { + if ( u3r_met(3, key) > 64 ) { + return u3_none; + } + if ( c3y == u3qa_gth(u3r_met(3, txt), len) ) { return u3_none; }