Then all these entities are compiled so that PsidGroupPermissions._cont['eeTypeX']._def = (1, 0).
In case of EndEntityType1, 2, which have _const_sz=ASN1Set(root=[8], ext=None), when such sequence is decoded with GET_DEFVAL flag, this is then going to fail at size constraint validation:
~/pycrate_asn1rt/asnobj_str.py in _safechk_bnd(self, val)
149 val[1] not in self._const_sz:
150 raise(ASN1ObjErr('{0}: value out of size constraint, {1!r}'\
--> 151 .format(self.fullname(), val)))
152 elif self._const_cont:
153 if self._const_cont._typeref:
ASN1ObjErr: PsidGroupPermissions.eeType1: value out of size constraint, (1, 0)
Because for Bitstring with fixed size constraint of 8, the correct default value should have been (128, 8) I think.
As this is probably again at the compiler section, I could not figure out which part handles the DEFAULT value compilation for BitStrings to analyze deeper.
This is actually one step after #108... same construct as before is used with
DEFAULT
value (using different constraints as example):Then all these entities are compiled so that
PsidGroupPermissions._cont['eeTypeX']._def = (1, 0)
. In case of EndEntityType1, 2, which have_const_sz=ASN1Set(root=[8], ext=None)
, when such sequence is decoded with GET_DEFVAL flag, this is then going to fail at size constraint validation:Because for Bitstring with fixed size constraint of 8, the correct default value should have been (128, 8) I think.
As this is probably again at the compiler section, I could not figure out which part handles the DEFAULT value compilation for BitStrings to analyze deeper.