From: "Piotr Gasidło" <quaker@pandora.barbara.ds.polsl.gliwice.pl>
To: netfilter-devel@lists.netfilter.org
Subject: Fix for u32 match, problems when parsing arguments
Date: Thu, 2 Sep 2004 14:28:02 +0200 [thread overview]
Message-ID: <20040902122802.GA6427@barbara.eu.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 429 bytes --]
Hello,
I've found bug in u32 iptables helper library.
# iptables -A FORWARD -m u32 --u32 "0&0xffffffff=0"
iptables v1.2.11: u32: at char 2 error reading number
Attached patch, fixes problem.
--
Piotr 'QuakeR' Gasidło, BOFH @ pandora.barbara.eu.org
############## sending lusers to /dev/null since 1998
##### Waiting for tomorrow, for a little ray of light
### Waiting for tomorrow just to see your smile again
[-- Attachment #1.2: libipt_u32_fix.diff --]
[-- Type: text/plain, Size: 432 bytes --]
diff -uNr iptables.orig/extensions/libipt_u32.c iptables/extensions/libipt_u32.c
--- iptables.orig/extensions/libipt_u32.c Thu Sep 2 14:13:50 2004
+++ iptables/extensions/libipt_u32.c Thu Sep 2 13:20:23 2004
@@ -85,7 +85,7 @@
char *end;
errno = 0;
- number = strtol(*s, &end, 0);
+ number = strtoul(*s, &end, 0);
if (end == *s)
exit_error(PARAMETER_PROBLEM,
"u32: at char %d expected number", pos);
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 232 bytes --]
next reply other threads:[~2004-09-02 12:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 12:28 Piotr Gasidło [this message]
2004-09-02 20:55 ` Fix for u32 match, problems when parsing arguments Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040902122802.GA6427@barbara.eu.org \
--to=quaker@pandora.barbara.ds.polsl.gliwice.pl \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.