linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] lib: hex2bin error checking
@ 2011-09-20 19:52 Mimi Zohar
  2011-09-20 19:52 ` [PATCH v1 1/4] lib: add error checking to hex2bin Mimi Zohar
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mimi Zohar @ 2011-09-20 19:52 UTC (permalink / raw)
  To: linux-security-module
  Cc: Mimi Zohar, linux-kernel, Andrew Morton, Andy Shevchenko,
	Tetsuo Handa, Arnaud Lacombe, James Morris, David Safford

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-09-21 15:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-20 19:52 [PATCH v1 0/4] lib: hex2bin error checking Mimi Zohar
2011-09-20 19:52 ` [PATCH v1 1/4] lib: add error checking to hex2bin Mimi Zohar
2011-09-20 19:52 ` [PATCH v1 2/4] trusted-keys: check hex2bin result Mimi Zohar
2011-09-20 19:52 ` [PATCH v1 3/4] encrypted-keys: " Mimi Zohar
2011-09-20 19:52 ` [PATCH v1 4/4] target: " Mimi Zohar
2011-09-20 23:55   ` Andy Shevchenko
2011-09-21  3:41     ` Mimi Zohar
2011-09-21 15:04       ` Mimi Zohar
2011-09-21 12:35   ` [PATCH v1 4/4] target: check hex2bin result (updated) Mimi Zohar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).