lib/digsig: additional sanity checks against badly formated key payload
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Thu, 26 Jan 2012 17:13:25 +0000 (19:13 +0200)
committerJames Morris <jmorris@namei.org>
Wed, 1 Feb 2012 13:23:38 +0000 (00:23 +1100)
commitf58a08152ce4198a2a1da162b97ecf8264c24866
treee430ef22210d8d6d41c0b7253978558a0f15f7a5
parentbc95eeadf5c6fd9e9840898a83a93718a0114b6d
lib/digsig: additional sanity checks against badly formated key payload

Added sanity checks for possible wrongly formatted key payload data:
- minimum key payload size
- zero modulus length
- corrected upper key payload boundary.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Reviewed-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
lib/digsig.c