From: Sergey Matveev Date: Sat, 19 May 2018 20:49:50 +0000 (+0300) Subject: Sanitize all Set required values are decoded X-Git-Tag: 3.7~24 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=269f0ae3462f3846f4de7331e9b212457c9f57f8 Sanitize all Set required values are decoded --- diff --git a/pyderasn.py b/pyderasn.py index 3cbe67d..6be00cb 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -4492,6 +4492,13 @@ class Set(Sequence): _decoded=(offset, llen, l), ) obj._value = values + if not obj.ready: + raise DecodeError( + msg="not all values are ready", + klass=self.__class__, + decode_path=decode_path, + offset=offset, + ) return obj, tail