File libtasn1-CVE-2021-46848.patch of Package libtasn1.11138

diff -Nurp libtasn1-3.7-orig/lib/int.h libtasn1-3.7/lib/int.h
--- libtasn1-3.7-orig/lib/int.h	2014-06-26 20:00:01.000000000 +0200
+++ libtasn1-3.7/lib/int.h	2022-10-25 09:34:03.934445220 +0200
@@ -93,7 +93,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)
 
 extern unsigned int _asn1_tags_size;
openSUSE Build Service is sponsored by