X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcodec_utils%2Fcommon%2FOCTET_STRING.c;h=628a5d6e9a40eb8137d002d862bcab5534e623ac;hb=f1f384a125521129ec29c1589b8499010cc4685c;hp=ae34c9681920a4d7a0ba869bda7d9cd4bb3f222c;hpb=bb8df345963bb5ef2e035ead7731c1171e4cbbe0;p=o-du%2Fl2.git diff --git a/src/codec_utils/common/OCTET_STRING.c b/src/codec_utils/common/OCTET_STRING.c index ae34c9681..628a5d6e9 100644 --- a/src/codec_utils/common/OCTET_STRING.c +++ b/src/codec_utils/common/OCTET_STRING.c @@ -1802,7 +1802,7 @@ OCTET_STRING_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, (long)csiz->effective_bits, (long)raw_len, repeat ? "repeat" : "once", td->name); - if (raw_len > 2) { /* X.691 #16 NOTE 1 */ + if ((st->size > 2) || (csiz->lower_bound != csiz->upper_bound)) { /* X.691 #16.11 */ if (aper_get_align(pd) < 0) RETURN(RC_FAIL); }