]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit957fd96d313ed4dcb02264d6a7f9ebafad15d283
tree1dc1656df18d946b6521f1c1c6b676dd8b2b465b
parentb13d9c9b9cf9b54f5af70c5a70dcff58784c5fd6
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