This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: protected alloca class for malloc fallback
- From: Jeff Law <law at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>, Aldy Hernandez <aldyh at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 4 Aug 2016 13:16:18 -0600
- Subject: Re: protected alloca class for malloc fallback
- Authentication-results: sourceware.org; auth=none
- References: <57A32741.7010003@redhat.com> <adc2ac77-a81e-15fb-b1ef-638534e815ac@redhat.com>
On 08/04/2016 01:06 PM, Pedro Alves wrote:
How wedded are we to alloca?
I would think only in the sense of existing codebase usage.
Based on how often alloca usage has resulted in a security vulnerability
it's clear we as developers can't use it correctly on a consistent
basis, thus I'd like to abolish it :-) I'll settle for warning folks
when they use it incorrectly though.
Jeff