vsprintf: remove %n handling
authorRyan Mallon <rmallon@gmail.com>
Thu, 3 Apr 2014 21:48:37 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:07 +0000 (16:21 -0700)
commit708d96fd060bd1e729fc93048cea8901f8bacb7c
tree1dc1656df18d946b6521f1c1c6b676dd8b2b465b
parent28ab49ff7f3dcaf4df8d2bd0d4099b8c08285ed7
vsprintf: remove %n handling

All in-kernel users of %n in format strings have now been removed and
the %n directive is ignored.  Remove the handling of %n so that it is
treated the same as any other invalid format string directive.  Keep a
warning in place to deter new instances of %n in format strings.

Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c