From c71818549e97a96e9a59cd2f11e175cd9ec4cb70 Mon Sep 17 00:00:00 2001 From: nlscc <66028747+nlscc@users.noreply.github.com> Date: Sat, 24 Oct 2020 13:33:15 +0100 Subject: fix #22 --- samloader/request.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samloader/request.py b/samloader/request.py index e19d072..47619d8 100644 --- a/samloader/request.py +++ b/samloader/request.py @@ -6,6 +6,8 @@ import xml.etree.ElementTree as ET def getlogiccheck(inp, nonce): + if len(inp) < 16: + raise Exception("getlogiccheck() input too short") out = "" for c in nonce: out += inp[ord(c) & 0xf] -- cgit v1.2.3