mirror of https://gerrit.osmocom.org/asn1c
effective bits is not 0
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1025 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
b81f9e04a0
commit
99079ea34c
|
@ -20,7 +20,7 @@ static asn_OCTET_STRING_specifics_t asn_DEF_OCTET_STRING_specs = {
|
|||
0
|
||||
};
|
||||
static asn_per_constraint_t asn_DEF_OCTET_STRING_constraint = {
|
||||
APC_SEMI_CONSTRAINED, -1, 0, 0, 0
|
||||
APC_SEMI_CONSTRAINED, -1, -1, 0, 0
|
||||
};
|
||||
asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = {
|
||||
"OCTET STRING", /* Canonical name */
|
||||
|
@ -1224,6 +1224,10 @@ OCTET_STRING_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
|
|||
if(!st) RETURN(RC_FAIL);
|
||||
}
|
||||
|
||||
ASN_DEBUG("PER Decoding %s %ld .. %ld bits %d",
|
||||
ct->flags & APC_EXTENSIBLE ? "extensible" : "fixed",
|
||||
ct->lower_bound, ct->upper_bound, ct->effective_bits);
|
||||
|
||||
if(ct->flags & APC_EXTENSIBLE) {
|
||||
int inext = per_get_few_bits(pd, 1);
|
||||
if(inext < 0) RETURN(RC_FAIL);
|
||||
|
|
Loading…
Reference in New Issue