[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130523110832.GB22553@localhost>
Date: Thu, 23 May 2013 13:08:32 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Chen Gang <gang.chen@...anux.com>
Cc: kaber@...sh.net, kuznet@....inr.ac.ru, jmorris@...ei.org,
yoshfuji@...ux-ipv6.org, David Miller <davem@...emloft.net>,
netfilter-devel@...r.kernel.org, netfilter@...r.kernel.org,
coreteam@...filter.org, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] ipv4: netfilter: always let NUL terminated string ended
by '\0'
On Fri, May 17, 2013 at 04:39:15PM +0800, Chen Gang wrote:
>
> For NUL terminated string, better always be sure of ended by '\0'.
>
> 'pm' is 'struct ulog_packet_msg_t' which may be copied to user mode
> (defined in "include/uapi/..."), so can not use strlcpy() instead of.
loginfo->prefix is always nul-terminated, as this is validated in
checkentry. I don't think the kernel will take a non nul-terminated
device name either.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists