mkregtable: Fix sscanf handling
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Tue, 17 Dec 2013 15:05:39 +0000 (15:05 +0000)
committerJiri Kosina <jkosina@suse.cz>
Fri, 10 Jan 2014 14:28:10 +0000 (15:28 +0100)
commit6b6419005ef1590f4f532899222424b4539b0511
tree29715365969c7106f719cbe6931e024e58bc5691
parentbfb18d824c6a6cc401b73b1da9105aed81eb6434
mkregtable: Fix sscanf handling

If you feed the tool a suitable bogus register map you can break it
in arbitary (code executing) ways. While this isn't a particularly
exciting or probable attack vector we still ought to fix it.

One of a set of sscanf issues reported by Jackie Chang

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/gpu/drm/radeon/mkregtable.c