summary refs log tree commit diff
path: root/gnu/system/uuid.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-06-18 23:07:43 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-06-18 23:24:37 -0400
commit04a4af6dd4fbfcfc564eac5eafe647b192ba3a8f (patch)
tree43dcbcb42b55892213b025e2c68bab88d2ed377c /gnu/system/uuid.scm
parent0dd04b9986dd834782c988035569089785a6987d (diff)
downloadguix-04a4af6dd4fbfcfc564eac5eafe647b192ba3a8f.tar.gz
uuid: Prevent a loop on invalid arguments.
* gnu/system/uuid.scm (uuid=?): Use type predicates in the fallback case to
prevent looping on invalid arguments.
Diffstat (limited to 'gnu/system/uuid.scm')
-rw-r--r--gnu/system/uuid.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/system/uuid.scm b/gnu/system/uuid.scm
index 225959e2b7..bc3af69610 100644
--- a/gnu/system/uuid.scm
+++ b/gnu/system/uuid.scm
@@ -298,5 +298,5 @@ corresponding bytevector; otherwise return #f."
      (bytevector=? (uuid-bytevector a) b))
     (((? uuid? a) (? uuid? b))
      (bytevector=? (uuid-bytevector a) (uuid-bytevector b)))
-    ((a b)
+    (((or (? uuid? a) (? bytevector? a)) (or (? uuid? b) (? bytevector? b)))
      (uuid=? b a))))