lkml.org 
[lkml]   [2011]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v1 0/4] lib: hex2bin error checking
Date
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



\
 
 \ /
  Last update: 2011-09-20 21:59    [W:0.063 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site