mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: grep: Apply fix for CVE-2015-1345.
* gnu/packages/patches/grep-CVE-2015-1345.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/base.scm (grep): Add patch.
This commit is contained in:
parent
8a00b93027
commit
a068dba78b
3 changed files with 20 additions and 1 deletions
17
gnu/packages/patches/grep-CVE-2015-1345.patch
Normal file
17
gnu/packages/patches/grep-CVE-2015-1345.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
Fix CVE-2015-1345. From upstream commit
|
||||
83a95bd8c8561875b948cadd417c653dbe7ef2e2
|
||||
by Yuliy Pisetsky <ypisetsky@fb.com>.
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue