<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - nft list ruleset – infinite memory use"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1222#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - nft list ruleset – infinite memory use"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1222">bug 1222</a>
from <span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span></b>
<pre>For the record. This fixes the infinite loop.
diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index 2637f4baaec4..5ad3192a57aa 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -307,7 +307,7 @@ static void netlink_parse_lookup(struct netlink_parse_ctx
*ctx,
return netlink_error(ctx, loc,
"Lookup expression has no left hand
side");
- if (left->len < set->key->len) {
+ if (left->len > 0 && left->len < set->key->len) {
left = netlink_parse_concat_expr(ctx, loc, sreg,
set->key->len);
if (left == NULL)
return;
However, this is still broken with ct saddr and concatenations.
Still considering here where to go with this bug report.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>