X-Git-Url: https://git.saurik.com/apple/libsecurity_codesigning.git/blobdiff_plain/935e692843d9c528f9a4c5eee98e00961ca5f4a4..HEAD:/lib/codedirectory.cpp?ds=sidebyside diff --git a/lib/codedirectory.cpp b/lib/codedirectory.cpp index 9596e8f..0bcb980 100644 --- a/lib/codedirectory.cpp +++ b/lib/codedirectory.cpp @@ -143,7 +143,7 @@ void CodeDirectory::checkIntegrity() const // now check interior offsets for validity if (!stringAt(identOffset)) MacOSError::throwMe(errSecCSSignatureFailed); // identifier out of blob range - if (!contains(hashOffset - hashSize * nSpecialSlots, hashSize * (nSpecialSlots + nCodeSlots))) + if (!contains(hashOffset - uint64_t(hashSize) * nSpecialSlots, hashSize * (uint64_t(nSpecialSlots) + nCodeSlots))) MacOSError::throwMe(errSecCSSignatureFailed); // hash array out of blob range if (const Scatter *scatter = this->scatterVector()) { // the optional scatter vector is terminated with an element having (count == 0)