I don't know where the notion expressed in the Linux man page came from. I'm pretty sure it's never been true of GNU compilers. I don't think there is any actual problem of the sort you have in mind with the existing code. The generally issue of unbounded stack allocation is of course separate and may very well be a reason to change. But a trivial change to use a temporary is not actually worthwhile because no real compiler that anybody uses has this imagined problem.
- Re: Dangerous use of alloca Justus Winter
- Re: Dangerous use of alloca Samuel Thibault
- Re: Dangerous use of alloca Justus Winter
- Re: Dangerous use of alloca Samuel Thibault
- Re: Dangerous use of alloca Justus Winter
- Re: Dangerous use of alloca Agustina Arzille
- Re: Dangerous use of alloca Samuel Thibault
- Re: Dangerous use of alloca Agustina Arzille
- Re: Dangerous use of alloca Agustina Arzille
- Re: Dangerous use of alloca Justus Winter
- Re: Dangerous use of alloca Roland McGrath