From efbc823179eebc9ec3fa32135df0af814522aef6 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 4 Jan 2026 09:30:57 +0000 Subject: i2c_ASN1_BIT_STRING(): zap nonsensical comment The /* should not happen */ happens if a->data is all zeroes (where there used to be an OOB access a few years back), which is a legitimate BIT STRING, so this is just nonsense. ok jsing kenjiro --- src/lib/libcrypto/asn1/a_bitstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c index 651822d3dd..82fd53231f 100644 --- a/src/lib/libcrypto/asn1/a_bitstr.c +++ b/src/lib/libcrypto/asn1/a_bitstr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_bitstr.c,v 1.45 2026/01/04 09:29:29 tb Exp $ */ +/* $OpenBSD: a_bitstr.c,v 1.46 2026/01/04 09:30:57 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -222,7 +222,7 @@ i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp) else if (j & 0x80) bits = 7; else - bits = 0; /* should not happen */ + bits = 0; } } else bits = 0; -- cgit v1.2.3-55-g6feb