Re: [PATCH] staging: dgnc: fix potential format string flaw

From: Joe Perches
Date: Wed Sep 11 2013 - 01:00:44 EST


On Tue, 2013-09-10 at 21:41 -0700, Kees Cook wrote:
> Make sure that format strings cannot leak into printk() calls from the
> msgbuf string.

printf(string);
vs
printf("%s", string);

How does this help?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/