<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - BUG: invalid expression type concat on invalid input "iifname . oifname p . q""
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1360">1360</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>BUG: invalid expression type concat on invalid input "iifname . oifname p . q"
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Debian GNU/Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arturo@debian.org
</td>
</tr></table>
<p>
<div>
<pre>Bug reported in Debian:
<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933621">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933621</a>
Original message follows:
I found a parser bug when experimenting with concatenations:
# nft 'flush ruleset; table a; chain a b; a b iifname . oifname p . q; list
ruleset'
BUG: invalid expression type concat
nft: evaluate.c:1726: expr_evaluate_relational: Assertion `0' failed.
Aborted (core dumped)
# nft 'flush ruleset; table a; chain a b; a b iifname . oifname != p . q;
list ruleset'
BUG: invalid expression type concat
nft: evaluate.c:1726: expr_evaluate_relational: Assertion `0' failed.
Aborted (core dumped)
nft should print an error message, not crash.
Here is an example of the behaviour I expect:
# nft 'flush ruleset; table a; chain a b; a b iifname . oifname = p . q;
list ruleset'
Error: syntax error, unexpected '='
flush ruleset; table a; chain a b; a b iifname . oifname = p . q; list
ruleset
FYI, the correct input is this:
# nft 'flush ruleset; table a; chain a b; a b iifname . oifname { p . q };
list ruleset'
table ip a {
chain b {
iifname . oifname { "a" . "b" }
}
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>