X-Git-Url: https://git.saurik.com/apple/libsecurity_codesigning.git/blobdiff_plain/2e2533baea112414a307d169c101a9c225fd1d77..f60086fcc38b96c965d923d8ba057d01d516f6d1:/lib/reqreader.cpp diff --git a/lib/reqreader.cpp b/lib/reqreader.cpp index 066517f..8c79912 100644 --- a/lib/reqreader.cpp +++ b/lib/reqreader.cpp @@ -40,6 +40,9 @@ namespace CodeSigning { Requirement::Reader::Reader(const Requirement *req) : mReq(req), mPC(sizeof(Requirement)) { + assert(req); + if (req->kind() != exprForm) + MacOSError::throwMe(errSecCSReqUnsupported); }