Harden plist parsing

This commit is contained in:
Bo Anderson 2023-02-22 22:52:06 +00:00
parent f5cd81be7e
commit 5ecf76a611
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ module FormulaCellarChecks
return unless prefix.directory?
plist = begin
Plist.parse_xml(plist)
Plist.parse_xml(plist, marshal: false)
rescue
nil
end

View File

@ -357,7 +357,7 @@ class SystemCommand
Regexp.last_match(1)
end
Plist.parse_xml(output)
Plist.parse_xml(output, marshal: false)
end
end