Displaying 2 results from an estimated 2 matches for "mpz_cmp".
2017 Sep 11
1
[Bug 1181] New: incorrect sort function at segtree.c
...sted 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)->value);
if (ret == 0 && (e1->flags & EXPR_F_INTERVAL_END))
return -1;
else
return 1;
return ret;
}
as you can see, running never reaches "return ret" and basically it doesn't
matter if mpz_cmp r...
2020 Apr 09
5
[Bug 1418] New: segfaults when running nft --file foo.nft --echo
...es
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
Assignee: pablo at netfilter.org
Reporter: chutzpah at gentoo.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=0x5555556ac...