Messages in this thread | | | From | Mimi Zohar <> | Subject | [PATCH v1 0/4] lib: hex2bin error checking | Date | Tue, 20 Sep 2011 15:52:49 -0400 |
| |
hex2bin converts a hexadecimal string to its binary representation.
This version simply adds error checking to the existing hex2bin(). On success, hex2bin returns 0, on failure -1.
Changelog v1 - refreshed the trusted, encrypted, 'target' patches - removed unpack_hex_byte() - changed return code from boolean to int
Mimi Zohar (4): lib: add error checking to hex2bin trusted-keys: check hex2bin result encrypted-keys: check hex2bin result target: check hex2bin result
drivers/target/target_core_fabric_lib.c | 11 +++++++++-- include/linux/kernel.h | 2 +- lib/hexdump.c | 15 +++++++++++---- security/keys/encrypted-keys/encrypted.c | 14 +++++++++++--- security/keys/trusted.c | 19 +++++++++++++++---- 5 files changed, 47 insertions(+), 14 deletions(-)
-- 1.7.3.4
| |