bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash on large brace expansion


From: Alex fxmbsw7 Ratchev
Subject: Re: Crash on large brace expansion
Date: Mon, 26 Jul 2021 21:56:57 +0200

i had an issue when needing ips, for my web crawler back then
i ended having a small .c that pulls random ips out to a count

On Thu, Jul 15, 2021 at 9:24 PM Greg Wooledge <greg@wooledge.org> wrote:
>
> On Thu, Jul 15, 2021 at 05:28:04PM +0200, Léa Gris wrote:
> > Le 15/07/2021 à 16:36, Gabríel Arthúr Pétursson écrivait :
> > > Hi all,
> > >
> > > Executing the following results in a fierce crash:
> > >
> > >     $ bash -c '{0..255}.{0..255}.{0..255}.{0..255}'
> >
> > Brace expression expands all the value in memory.
> >
> > Here you are actually telling Bash to expand 256⁴ or 4294967296 42 Billion
> > entries.
>
> 4.2 billion, but who's counting? :-)
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]