[Bug 976] invalid conversion from 'void*' to 'xt_entry_target*'
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Sun Oct 27 13:54:58 CET 2019
https://bugzilla.netfilter.org/show_bug.cgi?id=976
Christopher Wecht <wechtc at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wechtc at gmail.com
--- Comment #2 from Christopher Wecht <wechtc at gmail.com> ---
There is another problem with this function. Pointer arithmetic on void
pointers in illegal in either C and C++, it is an extension of GCC:
https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html
To be compliant to both standards, the expression should look something like
this.
return (xt_entry_target *)((char *)e + e->target_offset);
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20191027/fc1683f2/attachment.html>
More information about the netfilter-buglog
mailing list