Commit 1d5f0f24 authored by Lev Walkin's avatar Lev Walkin

lower bound to length

parent 7b284818
......@@ -1267,7 +1267,10 @@ OCTET_STRING_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
/* Get the PER length */
len_bits = uper_get_length(pd, ct->effective_bits, &repeat);
if(len_bits < 0) RETURN(RC_FAIL);
len_bits += ct->lower_bound;
ASN_DEBUG("Got per length eb %ld, len %ld",
ct->effective_bits, (long)len_bits);
if(unit_bits == 1) {
len_bytes = (len_bits + 7) >> 3;
if(len_bits & 0x7)
......
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