Re: on stack dynamic allocations

2012-08-17 Thread Jussi Kivilinna
Quoting David Daney : On 08/16/2012 02:20 PM, Kasatkin, Dmitry wrote: Hello, Some places in the code uses variable-size allocation on stack.. For example from hmac_setkey(): struct { struct shash_desc shash; char ctx[crypto_shash_descsize(hash)];

Re: on stack dynamic allocations

2012-08-16 Thread David Daney
On 08/16/2012 02:20 PM, Kasatkin, Dmitry wrote: Hello, Some places in the code uses variable-size allocation on stack.. For example from hmac_setkey(): struct { struct shash_desc shash; char ctx[crypto_shash_descsize(hash)]; } desc; sparse compl