summaryrefslogtreecommitdiffstats
path: root/package/grep/0001-fix-CVE-2015-1345.patch
blob: f7701aa0105fa97b9368e58e498cbe801770e648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Simplified patch from upstream to avoid autoreconf. Source:
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=83a95bd8c8561875b948cadd417c653dbe7ef2e2

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
diff --git a/src/kwset.c b/src/kwset.c
index 4003c8d..376f7c3 100644
--- a/src/kwset.c
+++ b/src/kwset.c
@@ -643,6 +643,8 @@ bmexec_trans (kwset_t kwset, char const *text, size_t size)
                     if (! tp)
                       return -1;
                     tp++;
+                    if (ep <= tp)
+                      break;
                   }
               }
           }
--
cgit v0.9.0.2
OpenPOWER on IntegriCloud