diff --git a/grep-2.21-buf-overrun-fix.patch b/grep-2.21-buf-overrun-fix.patch index 20fbbfc..661a3ff 100644 --- a/grep-2.21-buf-overrun-fix.patch +++ b/grep-2.21-buf-overrun-fix.patch @@ -90,6 +90,20 @@ index e40a070..9ecafe7 100644 long-line-vs-2GiB-read \ match-lines \ max-count-overread \ +@@ -2030,6 +2031,13 @@ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ ++ "$$tst" $(AM_TESTS_FD_REDIRECT) ++kwset-abuse.log: kwset-abuse ++ @p='kwset-abuse'; \ ++ b='kwset-abuse'; \ ++ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ ++ --log-file $$b.log --trs-file $$b.trs \ ++ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) + long-line-vs-2GiB-read.log: long-line-vs-2GiB-read + @p='long-line-vs-2GiB-read'; \ diff --git a/tests/kwset-abuse b/tests/kwset-abuse new file mode 100755 index 0000000..6d8ec0c diff --git a/grep.spec b/grep.spec index cc8c9a0..dda2f30 100644 --- a/grep.spec +++ b/grep.spec @@ -39,6 +39,8 @@ GNU grep is needed by many scripts, so it shall be installed on every system. %patch1 -p1 -b .help-align %patch2 -p1 -b .buf-overrun-fix +chmod 755 tests/kwset-abuse + %build %global BUILD_FLAGS $RPM_OPT_FLAGS