Commit ce676dd5 authored by Lev Walkin's avatar Lev Walkin

effective bits is not 0

parent 1d5f0f24
...@@ -20,7 +20,7 @@ static asn_OCTET_STRING_specifics_t asn_DEF_OCTET_STRING_specs = { ...@@ -20,7 +20,7 @@ static asn_OCTET_STRING_specifics_t asn_DEF_OCTET_STRING_specs = {
0 0
}; };
static asn_per_constraint_t asn_DEF_OCTET_STRING_constraint = { 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 = { asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = {
"OCTET STRING", /* Canonical name */ "OCTET STRING", /* Canonical name */
...@@ -1224,6 +1224,10 @@ OCTET_STRING_decode_uper(asn_codec_ctx_t *opt_codec_ctx, ...@@ -1224,6 +1224,10 @@ OCTET_STRING_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
if(!st) RETURN(RC_FAIL); 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) { if(ct->flags & APC_EXTENSIBLE) {
int inext = per_get_few_bits(pd, 1); int inext = per_get_few_bits(pd, 1);
if(inext < 0) RETURN(RC_FAIL); if(inext < 0) RETURN(RC_FAIL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment