]> git.neil.brown.name Git - history.git/commit
[PATCH] Improper handling of %c in vsscanf
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 00:51:46 +0000 (16:51 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 6 Feb 2004 00:51:46 +0000 (16:51 -0800)
commit97ec265352735d1d4701f3eae31c8415f44289c2
treeaaa86b2fde8d0d3d8fd6e055afd9e22aae83b707
parent3e9fb3ccf5ae076e4f33bc34271c054d5dafb349
[PATCH] Improper handling of %c in vsscanf

From: <gb@phonema.ea.univpm.it>

The "%c" in sscanf actually reads and writes one extra character (i.e.  2
characters insted of just one), and may thus easily overflow caller's
buffer.

Also affects 2.4 tree, even if there "%c" seems not to be used at all.
lib/vsprintf.c