Am 27.07.2015 um 20:38 schrieb Илья Бизяев:
>
> That commit does not fix the problem. What does the "alloca" function
> do? Maybe it can be replaced with stuff from <cstdlib>, such as
> malloc? If I'm not mistaken, it's portable.
>
"alloca" should be portable. (located in alloca.h)
It's available in MSVC and in linux.

What does it do?
It allocates memory from the /stack/ rather than from the /heap.
/This means that the memory you allocated will be cleaned up after the
function returns (just like with local variables).
However usually the stack isn't all too large so it should be used with
great care.

Can it be replaced?
Maybe.
We may be able to replace it with /new /and /delete.
/One would have to inspect the code to see if it's possible to avoid alloca.

BR

JPM
>
> пн, 27 июля 2015, 14:24, Jeffrey Walton <[email protected]
> <mailto:[email protected]>>:
>
>
>
>     On Monday, July 27, 2015 at 2:34:06 AM UTC-4, Ilya Bizyaev wrote:
>
>         Compilation fails with CRYPTOPP_NO_UNALIGNED_DATA_ACCESS defined:
>         rjindael.cpp:78:20: alloca.h - No such file or directory.
>         I've checked it manually - there is truly no such file.
>
>
>     Also see "Compile failure under Cygwin with GCC 4.8 in C++11 mode
>     due to alloca #16", https://github.com/weidai11/cryptopp/issues/16.
>
>     Things move fast around here now:
>     
> https://github.com/weidai11/cryptopp/commit/6b2129afb3dae691c2f1bcdef88fc1c4f080d37e
>
>     Jeff
>
> -- 
> -- 
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
> [email protected].
> More information about Crypto++ and this group is available at
> http://www.cryptopp.com.
> ---
> You received this message because you are subscribed to the Google
> Groups "Crypto++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to