diff options
author | Richard Sent <richard@freakingpenguin.com> | 2024-04-05 21:05:53 -0400 |
---|---|---|
committer | Guix Patches Tester <> | 2024-04-17 14:20:25 +0200 |
commit | 0c75de5bc40880c9acd1a47a17498a72042cca33 (patch) | |
tree | 469729adddcdb49917ef338041a926f6cd174356 | |
parent | b47ae1ecc43baaf726701ab2d2f810ecfaa75428 (diff) | |
download | guix-patches-issue-70226.tar guix-patches-issue-70226.tar.gz |
scripts: package: Disable searching with the empty stringissue-70226
Reported in <https://issues.guix.gnu.org/70223>.
* guix/scripts/package.scm (process-query): search operating no longer passes
empty strings to make-regexp to avoid unbounded memory usage.
Change-Id: I8194591f0428c4f88fb101c0226b98f593a55709
-rw-r--r-- | guix/scripts/package.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index a489e06e73..66e5384ddc 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -891,6 +891,8 @@ processed, #f otherwise." (('search _) (let* ((patterns (filter-map (match-lambda + ;; https://issues.guix.gnu.org/70223 + (('query 'search "") #f) (('query 'search rx) rx) (_ #f)) opts)) |