From 69349561bf941cc67f1afcbbc115af8dbd624f94 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 23:21:03 +0200 Subject: Merging upstream version 2.2.43. Signed-off-by: Daniel Baumann --- common/tlv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/tlv.c') diff --git a/common/tlv.c b/common/tlv.c index 9618d04..4ba9ef2 100644 --- a/common/tlv.c +++ b/common/tlv.c @@ -150,8 +150,10 @@ find_tlv_unchecked (const unsigned char *buffer, size_t length, /* ASN.1 BER parser: Parse BUFFER of length SIZE and return the tag - and the length part from the TLV triplet. Update BUFFER and SIZE - on success. */ + * and the length part from the TLV triplet. Update BUFFER and SIZE + * on success. Note that this function does not check that the value + * fits into the provided buffer; this allows to work on the TL part + * of a TLV. */ gpg_error_t parse_ber_header (unsigned char const **buffer, size_t *size, int *r_class, int *r_tag, -- cgit v1.2.3