27 lines
852 B
Diff
27 lines
852 B
Diff
From e50542a7c2f14115c0a6e9eb6068889c249b6b03 Mon Sep 17 00:00:00 2001
|
|
From: Vijay Sarvepalli <vssarvepalli@cert.org>
|
|
Date: Mon, 22 Dec 2025 12:24:27 -0500
|
|
Subject: [PATCH] Fix for CVE-2025-13151 Buffer overflow
|
|
|
|
Signed-off-by: Simon Josefsson <simon@josefsson.org>
|
|
---
|
|
lib/decoding.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/decoding.c b/lib/decoding.c
|
|
index 1e0fcb3..abcb49f 100644
|
|
--- a/lib/decoding.c
|
|
+++ b/lib/decoding.c
|
|
@@ -1983,7 +1983,7 @@ int
|
|
asn1_expand_octet_string (asn1_node_const definitions, asn1_node *element,
|
|
const char *octetName, const char *objectName)
|
|
{
|
|
- char name[2 * ASN1_MAX_NAME_SIZE + 1], value[ASN1_MAX_NAME_SIZE];
|
|
+ char name[2 * ASN1_MAX_NAME_SIZE + 2], value[ASN1_MAX_NAME_SIZE];
|
|
int retCode = ASN1_SUCCESS, result;
|
|
int len, len2, len3;
|
|
asn1_node_const p2;
|
|
--
|
|
2.54.0
|
|
|