This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] avoid memory overrun in a test leading to potential double-free
- From: DJ Delorie <dj at redhat dot com>
- To: Jim Meyering <jim at meyering dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Mar 2011 14:23:18 -0500
- Subject: Re: [PATCH] avoid memory overrun in a test leading to potential double-free
- References: <87aah5rco9.fsf@rho.meyering.net>
> avoid memory overrun in a test leading to potential double-free
> * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
> i.e., do copy the trailing NUL byte.
Ok. Thanks!