ash: Avoid overflow for very long variable name
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Sep 2016 09:35:54 +0000 (11:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Sep 2016 09:35:54 +0000 (11:35 +0200)
commit50e6d42c1967cbd3b07441876af2a7ff2bbbf63f
treeb55053eb25d07e976426945519d94dc93aa8b4f3
parentb6838b520afa8346751577cd7ccbe0b906cd3a52
ash: Avoid overflow for very long variable name

Upstream commit:

    Date: Tue, 3 Jul 2012 17:32:33 +0800
    Avoid overflow for very long variable name

    Otherwise, this:
      $ perl -le 'print "v"x(2**31+1) ."=1"' | dash
    provokes integer overflow

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c