mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05: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:
parent
0dd04b9986
commit
04a4af6dd4
1 changed files with 1 additions and 1 deletions
|
@ -298,5 +298,5 @@ (define uuid=?
|
|||
(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))))
|
||||
|
|
Loading…
Reference in a new issue