summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2026-01-04 09:30:57 +0000
committertb <>2026-01-04 09:30:57 +0000
commitefbc823179eebc9ec3fa32135df0af814522aef6 (patch)
tree354967171e1d6e0bf22cdfe99d383681d72beb62 /src
parente3fc5ce7fcb410fc9163db2d569ddec064139b9b (diff)
downloadopenbsd-efbc823179eebc9ec3fa32135df0af814522aef6.tar.gz
openbsd-efbc823179eebc9ec3fa32135df0af814522aef6.tar.bz2
openbsd-efbc823179eebc9ec3fa32135df0af814522aef6.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c4
1 files changed, 2 insertions, 2 deletions
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 @@
1/* $OpenBSD: a_bitstr.c,v 1.45 2026/01/04 09:29:29 tb Exp $ */ 1/* $OpenBSD: a_bitstr.c,v 1.46 2026/01/04 09:30:57 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -222,7 +222,7 @@ i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
222 else if (j & 0x80) 222 else if (j & 0x80)
223 bits = 7; 223 bits = 7;
224 else 224 else
225 bits = 0; /* should not happen */ 225 bits = 0;
226 } 226 }
227 } else 227 } else
228 bits = 0; 228 bits = 0;