[tex-k] Brace expansion question

Reinhard Kotucha reinhard.kotucha at web.de
Mon Oct 23 01:29:21 CEST 2017


On 2017-10-22 at 16:05:18 -0700, Tomas Rokicki wrote:

 > It also introduces yet another shell attack; something like the
 > following locks up bash pretty hard, with no response to control-C
 > or control-Z or other control characters:
 > 
 >    echo {a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}
 > {a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}{a,b,c}

Furthermore, bash consumes all of the available memory and the system
begins to swap within a few seconds.  Obviously a severe bug.

Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the tex-k mailing list