Re: [RFC][PATCH 5/5] target: check hex2bin result

From: Tetsuo Handa
Date: Fri Sep 16 2011 - 10:08:04 EST


Mimi Zohar wrote:
> Now that hex2bin does error checking, on error add debugging error msg.

We are waiting for response from Nicholas, aren't we?
Quotuing from http://www.spinics.net/linux/fedora/linux-security-module/msg11570.html :
| I was assuming that, by adding error check, hex2bin() will leave the buffer
| uninitialized in case of bad input because hex2bin() user in Linux 3.0 can
| return errors. Now you are a new user of hex2bin() but your code cannot return
| errors. Nicholas, how do you want to handle bad input?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/