Displaying 4 results from an estimated 4 matches for "expr_value_cmp".
2017 Sep 11
1
[Bug 1181] New: incorrect sort function at segtree.c
...: minor
Priority: P5
Component: iptables over nftable
Assignee: pablo at netfilter.org
Reporter: cidjey1991 at mail.ru
Created attachment 506
--> https://bugzilla.netfilter.org/attachment.cgi?id=506&action=edit
Suggested solution
Function static int expr_value_cmp(const void *p1, const void *p2) at segtree.c
in nftables sources is incorrect.
static int expr_value_cmp(const void *p1, const void *p2)
{
struct expr *e1 = *(void * const *)p1;
struct expr *e2 = *(void * const *)p2;
int ret;
ret = mpz_cmp(expr_value(e1)->value, expr_value(e2)-...
2020 Apr 09
5
[Bug 1418] New: segfaults when running nft --file foo.nft --echo
...entoo.org
Here is the backtrace:
mpz_cmp (a=a at entry=0x555555654ce0, b=<optimized out>) at mini-gmp.c:1819
1819 return mpn_cmp (a->_mp_d, b->_mp_d, asize);
(gdb) bt
#0 mpz_cmp (a=a at entry=0x555555654ce0, b=<optimized out>) at mini-gmp.c:1819
#1 0x00005555555ad790 in expr_value_cmp (p1=p1 at entry=0x5555556ac820,
p2=p2 at entry=0x5555556ac828) at segtree.c:832
#2 0x00007ffff7d86f3d in msort_with_tmp (p=p at entry=0x7fffffffc9a0,
b=b at entry=0x5555556ac820, n=n at entry=2) at msort.c:83
#3 0x00007ffff7d86ea4 in msort_with_tmp (n=2, b=0x5555556ac820,
p=0x7fffffffc9a0) at mso...
2016 Jun 02
0
[ANNOUNCE] nftables 0.6 release
...se parsed type and hook name strings
src: store parser location for handle and position specifiers
segtree: perform stricter expression type validation from expr_value()
segtree: clone full expression from interval_map_decompose()
segtree: handle adjacent interval nodes from expr_value_cmp()
segtree: explicit initialization via set_to_intervals()
rule: support for incremental set interval element updates
segtree: special handling for the first non-matching segment
evaluate: bail out on prefix or range to non-interval set
segtree: set expr->len for pre...
2017 Oct 12
0
[ANNOUNCE] nftables 0.8 release
...ems to be sets
evaluate: set: Fix nested set merge size adjustment
tests: Add test cases for nested anonymous sets
tests: shell: netns/0003many_0: Fix cleanup after error
sets: Fix for missing space after last element
nft.8: Enhance NAT documentation
segtree: Fix expr_value_cmp()
src: Allow passing the parent set to set_expr_alloc()
segtree: Introduce flag for half-open range elements
tests: Add basic monitor testing framework
monitor: Print NEWGEN events
tests/monitor: Ignore newgen messages in output
tests/monitor: Add a small README...