Displaying 1 result from an estimated 1 matches for "xtables_pending_matches".
2014 May 19
1
[Bug 943] New: Memory corruption in libxtables/xtables.c + fix
...fault. Since valgrind is not available on that
platform I tried to reproduce it on x86 without success - valgrind didn't
complain. So I've gone the hard way and debugged manually and found two
off-by-one bugs in two adjacent lines. (see attachment for a proposed fix)
In my case the LSB of xtables_pending_matches was overwritten with zero that
lead to the segmentation fault. But simply adding an additional variable in the
code or changing compilation options modified the behaviour so that no
segmentation fault happens so it was rather subtle.
(1) memset(p + (bits / 8) + 1, 0, (128 - bits) / 8);
In cas...