From: Chen Gang Date: Thu, 23 May 2013 01:50:46 +0000 (+0000) Subject: netfilter: ipt_ULOG: fix non-null terminated string in the nf_log path X-Git-Tag: v3.10-rc5~25^2~29^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f36ea6eed2081340c7a7aa98c73187ecfccebff;p=pandora-kernel.git netfilter: ipt_ULOG: fix non-null terminated string in the nf_log path If nf_log uses ipt_ULOG as logging output, we can deliver non-null terminated strings to user-space since the maximum length of the prefix that is passed by nf_log is NF_LOG_PREFIXLEN but pm->prefix is 32 bytes long (ULOG_PREFIX_LEN). This is actually happening already from nf_conntrack_tcp if ipt_ULOG is used, since it is passing strings longer than 32 bytes. Signed-off-by: Chen Gang Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed