[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-cpio] [PATCH] lib/paxnames.c: Do not use alloca to avoid stack
Dmitry V. Levin
Re: [Bug-cpio] [PATCH] lib/paxnames.c: Do not use alloca to avoid stack overflow
Fri, 24 Aug 2007 01:31:21 +0400
On Thu, Aug 23, 2007 at 02:44:10PM +0200, Ladislav Michnovi?? wrote:
> 2007/8/23, Dmitry V. Levin <address@hidden>:
> > On Tue, Aug 21, 2007 at 02:11:12PM +0200, Ladislav Michnovic wrote:
> > >It was not used before cpio version 2.7. Am I right?
> > The safer_name_suffix() function is part of paxlib (code shared between
> > GNU cpio and GNU tar); was introduced approx. in tar-1.13.26 and later
> > used in cpio-2.7 via paxlib.
> Thank you for clarification. As I go through patches, I think your
> patch https://savannah.gnu.org/patch/?4005
> uses alloca. So may be affected too.
As of cpio-2.9, that patch is mostly obsolete.
I still think that no_abs_paths_flag should be set by default to "true" in
extract mode, see
Description: PGP signature
Re: [Bug-cpio] [PATCH] lib/paxnames.c: Do not use alloca to avoid stack overflow, Sergey Poznyakoff, 2007/08/17