mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-06 01:05:54 +02:00
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.
This commit is contained in:
+1
-1
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user