libtasn1/0001-Fix-endless-loop-in-_asn1_check_identifier.patch
2020-06-06 11:51:22 +08:00

30 lines
779 B
Diff

From c32f0f1d3ed15e0286bc6e1757ccbe3b9f8c9cda Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Fri, 19 Jul 2019 13:16:27 +0200
Subject: [PATCH] Fix endless loop in _asn1_check_identifier()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
---
lib/parser_aux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
index b182948..095204e 100644
--- a/lib/parser_aux.c
+++ b/lib/parser_aux.c
@@ -1029,7 +1029,7 @@ _asn1_check_identifier (asn1_node_const node)
p = p->right;
else
{
- while (1)
+ while (p)
{
p = _asn1_find_up (p);
if (p == node)
--
1.8.3.1