From: Alan Cox Date: Thu, 26 Jul 2012 21:47:11 +0000 (-0700) Subject: smack: off by one error X-Git-Tag: v3.6-rc1~55^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b9fc37280c521b086943f9aedda767f5bf3b2d3;p=pandora-kernel.git smack: off by one error Consider the input case of a rule that consists entirely of non space symbols followed by a \0. Say 64 + \0 In this case strlen(data) = 64 kzalloc of subject and object are 64 byte objects sscanfdata, "%s %s %s", subject, ...) will put 65 bytes into subject. Signed-off-by: Alan Cox Acked-by: Casey Schaufler Cc: stable@vger.kernel.org Signed-off-by: James Morris --- Reading git-diff-tree failed