We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c866f85 commit 20b2d32Copy full SHA for 20b2d32
lld/MachO/SyntheticSections.cpp
@@ -1250,7 +1250,8 @@ void CodeSignatureSection::writeHashes(uint8_t *buf) const {
1250
uint8_t *hashes = buf + fileOff + allHeadersSize;
1251
parallelFor(0, getBlockCount(), [&](size_t i) {
1252
sha256(buf + i * blockSize,
1253
- std::min(static_cast<size_t>(fileOff - i * blockSize), blockSize),
+ std::min(static_cast<size_t>(fileOff - i * blockSize),
1254
+ static_cast<size_t>(blockSize)),
1255
hashes + i * hashSize);
1256
});
1257
#if defined(__APPLE__)
0 commit comments