From: Don Armstrong Date: Wed, 23 Apr 2014 15:55:17 +0000 (-0700) Subject: don't go past end of @msg when setting X-Git-Tag: release/2.6.0~261 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=c04432ba467f7f957835b7264157951787e27f4c don't go past end of @msg when setting --- diff --git a/scripts/process b/scripts/process index 516bd31..bceb69c 100755 --- a/scripts/process +++ b/scripts/process @@ -248,7 +248,7 @@ for my $key (grep /X-Debbugs-.*/i, keys %pheader) { # set $i to beginning of encoded body data, so we can dump it out # verbatim later my $i = 0; -++$i while $msg[$i] =~ /./; +++$i while $i <= $#msg and $msg[$i] =~ /./; $fwd .= join("\n",@msg[$i..$#msg]); binmode($debugfh,':raw');