Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[NETFILTER]: H.323 helper: fix sequence extension parsing

When parsing unknown sequence extensions the "son"-pointer points behind
the last known extension for this type, don't try to interpret it.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Patrick McHardy and committed by
David S. Miller
4d942d8b 7185989d

+1 -1
+1 -1
net/ipv4/netfilter/ip_conntrack_helper_h323_asn1.c
··· 555 555 556 556 /* Decode the extension components */ 557 557 for (opt = 0; opt < bmp2_len; opt++, i++, son++) { 558 - if (son->attr & STOP) { 558 + if (i < f->ub && son->attr & STOP) { 559 559 PRINT("%*.s%s\n", (level + 1) * TAB_SIZE, " ", 560 560 son->name); 561 561 return H323_ERROR_STOP;