From 25787deca7bf3863c3fc1af8bccbbda111b8d033 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 7 Jan 2021 17:25:36 +0100 Subject: [PATCH] Fix assert --- src/core/libs/supl/asn-rrlp/constr_CHOICE.c | 2 +- src/core/libs/supl/asn-supl/constr_CHOICE.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/libs/supl/asn-rrlp/constr_CHOICE.c b/src/core/libs/supl/asn-rrlp/constr_CHOICE.c index 4cc5d8a34..ded1c4f2a 100644 --- a/src/core/libs/supl/asn-rrlp/constr_CHOICE.c +++ b/src/core/libs/supl/asn-rrlp/constr_CHOICE.c @@ -755,7 +755,7 @@ asn_dec_rval_t CHOICE_decode_xer(asn_codec_ctx_t *opt_codec_ctx, { RETURN(tmprval.code); } - assert(_fetch_present_idx(st, specs->pres_offset, + assert(fetch_present_idx(st, specs->pres_offset, specs->pres_size) == 0); /* Record what we've got */ set_present_idx(st, specs->pres_offset, specs->pres_size, diff --git a/src/core/libs/supl/asn-supl/constr_CHOICE.c b/src/core/libs/supl/asn-supl/constr_CHOICE.c index 4cc5d8a34..ded1c4f2a 100644 --- a/src/core/libs/supl/asn-supl/constr_CHOICE.c +++ b/src/core/libs/supl/asn-supl/constr_CHOICE.c @@ -755,7 +755,7 @@ asn_dec_rval_t CHOICE_decode_xer(asn_codec_ctx_t *opt_codec_ctx, { RETURN(tmprval.code); } - assert(_fetch_present_idx(st, specs->pres_offset, + assert(fetch_present_idx(st, specs->pres_offset, specs->pres_size) == 0); /* Record what we've got */ set_present_idx(st, specs->pres_offset, specs->pres_size,