]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: cover baecd1cf2685 ("segtree: Fix segfault when restoring a huge interval...
authorŠtěpán Němec <snemec@redhat.com>
Wed, 20 Oct 2021 12:42:20 +0000 (14:42 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 20 Oct 2021 13:11:47 +0000 (15:11 +0200)
commitd8ccad2a2b73c4189934eb5fd0e3d096699b5043
tree8a4f37e6fcae40d41ecfb2cab3008a68c2558986
parent2139913694a9850c9160920b2c638aac4828f9bb
tests: cover baecd1cf2685 ("segtree: Fix segfault when restoring a huge interval set")

Test inspired by [1] with both the set and stack size reduced by the
same power of 2, to preserve the (pre-baecd1cf2685) segfault on one
hand, and make the test successfully complete (post-baecd1cf2685) in a
few seconds even on weaker hardware on the other.

(The reason I stopped at 128kB stack size is that with 64kB I was
getting segfaults even with baecd1cf2685 applied.)

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1908127

Signed-off-by: Štěpán Němec <snemec@redhat.com>
Helped-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/shell/testcases/sets/0068interval_stack_overflow_0 [new file with mode: 0755]