Skip to content

Commit 8a5f550

Browse files
authored
Merge pull request #16135 from FRRouting/mergify/bp/stable/9.1/pr-16111
ospf6d: Prevent heap-buffer-overflow with unknown type (backport #16111)
2 parents 94f3cbc + 359892f commit 8a5f550

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ospf6d/ospf6_gr_helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static int ospf6_extract_grace_lsa_fields(struct ospf6_lsa *lsa,
176176
return OSPF6_FAILURE;
177177
break;
178178
default:
179+
sum += TLV_SIZE(tlvh);
179180
if (IS_DEBUG_OSPF6_GR)
180181
zlog_debug("%s, Ignoring unknown TLV type:%d",
181182
__func__, ntohs(tlvh->type));

0 commit comments

Comments
 (0)