From: Arvanitis Kostas <arvanit@ellemedia.com>
To: netfilter-devel@lists.netfilter.org
Cc: arvanit@ellemedia.com
Subject: Buffer of by one in iptables.c in iptables v1.2.7a
Date: Fri, 21 Feb 2003 16:24:05 +0200 [thread overview]
Message-ID: <200302211624.05704.arvanit@ellemedia.com> (raw)
The line in find_target() that reads:
char path[sizeof(IPT_LIB_DIR) + sizeof("/libipt_.so") + strlen(name)]
is used as the target buffer for a sprintf() statement. However sprintf will
also append a '\0' after the string, so the corrected line should be:
char path[sizeof(IPT_LIB_DIR) + sizeof("/libipt_.so") + strlen(name)+1]
This does not seem to affect the program, since path[] is allocated on the
stack and there is nothing following it. However, for the shake of
completeness, I think it should be corrected.
PS: Keep up the good work.
PS2: Is there a thought for iptables to take src/dst addresses as ranges in
the form of ip_low - ip_high? (so as to be more compatible with the NAT-MIB)
--
A: No. See http://www.netmeister.org/news/learn2quote.html
Q: Should I include quotations after my reply ?
next reply other threads:[~2003-02-21 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-21 14:24 Arvanitis Kostas [this message]
2003-02-23 11:41 ` Buffer of by one in iptables.c in iptables v1.2.7a Patrick Schaaf
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=200302211624.05704.arvanit@ellemedia.com \
--to=arvanit@ellemedia.com \
--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.