Combination of optional fields and explicit tag ignores the option type #272
Labels
area/codec
Related to a new or existing ASN.1 codec.
area/types
Related to rasn’s types for ASN.1
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
When explicit tags are used for optional fields, wrong decoding (maybe encoding too) functions are derived. Or maybe option type disappears somehow, as the code does not hit the
decode_optional_*
methods.This seemed to be rather hard to debug, if there are any hints where this check happens.
Output (decoder does not hit the
decode_option_*
With
tag()
it works fine and correct code is executed.The text was updated successfully, but these errors were encountered: