From: Kees Cook Date: Mon, 30 Sep 2013 16:22:20 +0000 (-0300) Subject: [media] dib9000: fix potential format string leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f25bbaff71a779a7d347e0588e56d890a153af1b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] dib9000: fix potential format string leak Make sure that a format string cannot accidentally leak into the printk buffer. Signed-off-by: Kees Cook Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/dib9000.c b/drivers/media/dvb-frontends/dib9000.c index 6201c59a78dd..61b2cfe6789c 100644 --- a/drivers/media/dvb-frontends/dib9000.c +++ b/drivers/media/dvb-frontends/dib9000.c @@ -649,7 +649,7 @@ static int dib9000_risc_debug_buf(struct dib9000_state *state, u16 * data, u8 si b[2 * (size - 2) - 1] = '\0'; /* Bullet proof the buffer */ if (*b == '~') { b++; - dprintk(b); + dprintk("%s", b); } else dprintk("RISC%d: %d.%04d %s", state->fe_id, ts / 10000, ts % 10000, *b ? b : ""); return 1;