Thread (32 messages) 32 messages, 4 authors, 2015-09-18

Re: [PATCH 5/8] lib/scatterlist: Add sg_len helper

flat view

From: Stephan Mueller <hidden>
Date: 2015-09-09 16:49:47

Am Mittwoch, 9. September 2015, 09:46:36 schrieb Tadeusz Struk:

Hi Tadeusz,
On 09/09/2015 09:39 AM, Stephan Mueller wrote:
quoted
quoted
No, because it can return -EINVAL if you call it before you set the key.
I see.

But, shouldn't there be an overflow check? Maybe not here, but in the cases
where the function is invoked. There is a kmalloc(src_len) without a check
for negative values.
Right, but because testmgr.c calls setkey before this I skipped the check.
But in the rsa.c enc/dec/verify/sign functions, there should be such check, I 
would guess.


Ciao
Stephan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help