bugzilla-daemon at netfilter.org
2016-Dec-30 23:44 UTC
[Bug 1107] New: printf format warnings on 32-bit build (git 20161230) (patch)
https://bugzilla.netfilter.org/show_bug.cgi?id=1107 Bug ID: 1107 Summary: printf format warnings on 32-bit build (git 20161230) (patch) Product: iptables Version: CVS (please indicate timestamp) Hardware: i386 OS: All Status: NEW Severity: normal Priority: P5 Component: iptables Assignee: netfilter-buglog at lists.netfilter.org Reporter: duncan_roe at acslink.net.au Created attachment 488 --> https://bugzilla.netfilter.org/attachment.cgi?id=488&action=edit Fixes warnings as per bug description This is the well-known %lu with uint64_t again. It does actually result in bad output: little-endian systems will show value mod 4G and big-endian will show value / 4G. The source already addresses this in 2 ways: 1. use %llu and cast to long long unsigned int 2. Use macro PRIu64 from <inttypes.h> I offer a patch using method 2: using the macro still gets a warning if the base type is inappropriate but with a cast there can be no warning -- 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/20161230/4414ded3/attachment.html>
bugzilla-daemon at netfilter.org
2017-Jan-03 11:54 UTC
[Bug 1107] printf format warnings on 32-bit build (git 20161230) (patch)
https://bugzilla.netfilter.org/show_bug.cgi?id=1107 --- Comment #1 from Pablo Neira Ayuso <pablo at netfilter.org> --- *** Bug 1109 has been marked as a duplicate of this bug. *** -- 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/20170103/8b4d2d5c/attachment.html>
bugzilla-daemon at netfilter.org
2017-Jan-03 11:54 UTC
[Bug 1107] printf format warnings on 32-bit build (git 20161230) (patch)
https://bugzilla.netfilter.org/show_bug.cgi?id=1107 Pablo Neira Ayuso <pablo at netfilter.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pablo at netfilter.org Status|NEW |ASSIGNED -- 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/20170103/9f1b569a/attachment.html>
bugzilla-daemon at netfilter.org
2019-Sep-10 20:53 UTC
[Bug 1107] printf format warnings on 32-bit build (git 20161230) (patch)
https://bugzilla.netfilter.org/show_bug.cgi?id=1107 Florian Westphal <fw at strlen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fw at strlen.de Resolution|--- |FIXED Status|ASSIGNED |RESOLVED -- 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/20190910/2f7c839e/attachment.html>
Reasonably Related Threads
- [Bug 1109] New: printf format warnings on 32-bit build (git 20161230) (patch)
- [Bug 916] New: Build failure on Slackware 14.1 (./configure rejects libreadline.so)
- [Bug 1108] New: Need a new release to build nftables --with-xtables
- [Bug 1110] New: Build failure if --with-xtables
- [Bug 1371] New: Concatenations Literal sets