diff -Nurp libtasn1-4.13-orig/lib/int.h libtasn1-4.13/lib/int.h --- libtasn1-4.13-orig/lib/int.h 2016-09-11 11:53:52.000000000 +0200 +++ libtasn1-4.13/lib/int.h 2022-10-25 09:40:21.061918424 +0200 @@ -98,7 +98,7 @@ typedef struct tag_and_class_st #define ETYPE_TAG(etype) (_asn1_tags[etype].tag) #define ETYPE_CLASS(etype) (_asn1_tags[etype].class) #define ETYPE_OK(etype) (((etype) != ASN1_ETYPE_INVALID && \ - (etype) <= _asn1_tags_size && \ + (etype) < _asn1_tags_size && \ _asn1_tags[(etype)].desc != NULL)?1:0) #define ETYPE_IS_STRING(etype) ((etype == ASN1_ETYPE_GENERALSTRING || \