mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: pcre@2: Fix run-time crash [security fix].
* gnu/packages/pcre.scm (pcre2)[replacement]: New field. (pcre2/fixed): New public variable. * packages/patches/pcre2-fix-jit_match-crash.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
This commit is contained in:
parent
9b76aa1031
commit
951fd8572a
2 changed files with 13 additions and 0 deletions
|
@ -89,6 +89,7 @@ POSIX regular expression API.")
|
|||
(define-public pcre2
|
||||
(package
|
||||
(name "pcre2")
|
||||
(replacement pcre2/fixed)
|
||||
(version "10.33")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
|
@ -125,3 +126,14 @@ own native API, as well as a set of wrapper functions that correspond to the
|
|||
POSIX regular expression API.")
|
||||
(license license:bsd-3)
|
||||
(home-page "https://www.pcre.org/")))
|
||||
|
||||
(define-public pcre2/fixed
|
||||
;; PHP >= 7.3.8 requires a fixed version at build time, so make it public
|
||||
;; and hide it in the UI.
|
||||
(package
|
||||
(inherit pcre2)
|
||||
(source
|
||||
(origin
|
||||
(inherit (package-source pcre2))
|
||||
(patches (search-patches "pcre2-fix-jit_match-crash.patch"))))
|
||||
(properties '((hidden? . #t)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue