From 39721a322368af22327bf4255924931dadc6924d Mon Sep 17 00:00:00 2001 From: John Regehr Date: Thu, 18 Sep 2014 09:24:13 -0600 Subject: [PATCH] apply Markus's suggested patch to stop C-Reduce when size of reduced testcase reaches zero --- creduce/creduce.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/creduce/creduce.in b/creduce/creduce.in index f50f77c5..510eec16 100644 --- a/creduce/creduce.in +++ b/creduce/creduce.in @@ -330,6 +330,9 @@ sub delta_pass ($) { my $tmpdir = make_tmpdir(); chdir $tmpdir or die; my $tmpfn = File::Spec->rel2abs($orig_tmpfn); + if (-s $toreduce_best == 0) { + die "filesize reached zero"; + } File::Copy::copy($toreduce_best,$tmpfn) or die; # creating the variant is done in the parent, it's only # testing it that we parallelize