[openssl] master update

Dr. Paul Dale pauli at openssl.org
Wed Apr 7 13:29:31 UTC 2021


The branch master has been updated
       via  ccf19c23c03ff0355d5008f73b77a0e22ee8ca8c (commit)
      from  44e82b813fbec93664fa355a65024a56f6eb82d7 (commit)


- Log -----------------------------------------------------------------
commit ccf19c23c03ff0355d5008f73b77a0e22ee8ca8c
Author: Pauli <pauli at openssl.org>
Date:   Tue Apr 6 10:23:12 2021 +1000

    Disallow ASN.1 enumerated types to be treated as strings.
    
    They are actually integers.
    
    Problem reported by: Scott McPeak <scott.g.mcpeak at gmail.com>
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14774)

-----------------------------------------------------------------------

Summary of changes:
 crypto/asn1/tasn_dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c
index 0987c2ece3..00a76cc825 100644
--- a/crypto/asn1/tasn_dec.c
+++ b/crypto/asn1/tasn_dec.c
@@ -66,7 +66,7 @@ static const unsigned long tag2bit[32] = {
     /* tags  4- 7 */
     B_ASN1_OCTET_STRING, 0, 0, B_ASN1_UNKNOWN,
     /* tags  8-11 */
-    B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN,
+    B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, 0, B_ASN1_UNKNOWN,
     /* tags 12-15 */
     B_ASN1_UTF8STRING, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN,
     /* tags 16-19 */


More information about the openssl-commits mailing list