From: Shivani Bhardwaj <shivanib134@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] src: netlink_delinearize: Fix datatype for len
Date: Mon, 29 Feb 2016 01:10:43 +0530 [thread overview]
Message-ID: <20160228194043.GA15021@gmail.com> (raw)
Change the data type of len from unsigned int to int in order to make
it valid for checks like
if (len < 0)
The issue was brought into attention by the unexplained behavior of
frag with frag-off. Bugzilla entry:
https://bugzilla.netfilter.org/show_bug.cgi?id=935
This patch fixes this bug, however there are still issues with frag
that need to be fixed.
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
src/netlink_delinearize.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index ae6abb0..2d7a417 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -107,7 +107,7 @@ static void netlink_release_registers(struct netlink_parse_ctx *ctx)
static struct expr *netlink_parse_concat_expr(struct netlink_parse_ctx *ctx,
const struct location *loc,
unsigned int reg,
- unsigned int len)
+ int len)
{
struct expr *concat, *expr;
@@ -134,7 +134,7 @@ err:
static struct expr *netlink_parse_concat_data(struct netlink_parse_ctx *ctx,
const struct location *loc,
unsigned int reg,
- unsigned int len,
+ int len,
struct expr *data)
{
struct expr *concat, *expr, *i;
--
1.9.1
next reply other threads:[~2016-02-28 19:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-28 19:40 Shivani Bhardwaj [this message]
2016-02-29 10:06 ` [PATCH] src: netlink_delinearize: Fix datatype for len Florian Westphal
2016-02-29 10:28 ` Shivani Bhardwaj
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=20160228194043.GA15021@gmail.com \
--to=shivanib134@gmail.com \
--cc=netfilter-devel@vger.kernel.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.