From 7e9297e898961c87bedfe559dfa7f2cc3e975058 Mon Sep 17 00:00:00 2001 From: Steffen Nurpmeso Date: Tue, 19 Dec 2017 06:10:34 +0100 Subject: [PATCH] Fix two unseen but possible NULL derefs in "address parser" --- head.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/head.c b/head.c index 065c4cdd..1ff091d4 100644 --- a/head.c +++ b/head.c @@ -641,6 +641,8 @@ jnode_redo: tp = tcurr; while((tp = tp->t_next) != NULL && (tp->t_f & a_T_TATOM)) tp->t_f |= a_T_SPECIAL; + if(tp == NULL) + break; } } @@ -653,6 +655,8 @@ jnode_redo: tp = tcurr; while((tp = tp->t_next) != NULL && (tp->t_f & a_T_TATOM)) tp->t_f |= a_T_SPECIAL; + if(tp == NULL) + break; } } -- 2.11.4.GIT