Thread (16 messages) flat view 16 messages, 7 authors, 2011-07-19

Re: [PATCH] Add error check to hex2bin().

From: Andy Shevchenko <hidden>
Date: 2011-07-18 19:44:33
Also in: lkml

On Mon, Jul 18, 2011 at 10:20 PM, Mimi Zohar [off-list ref] wrote:
quoted
quoted
We probably don't need to define a separate 'safe' function.
There is an opponent on any  approach. Although, small and fast error
route could be good.
As nothing but trusted/encrypted keys is using hex2bin, it shouldn't be
a problem.  :-)
The key word "until now". But people will start to use anything which
has public API, won't they?
 I'll update trusted/encrypted keys to check the return
code.
Actually another question shall we add __must_check to the prototype or not?

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help