mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:17:28 +00:00
DriverPayload: Fix payload's order.
This commit is contained in:
parent
e822a3f76b
commit
fbb1253721
@ -361,6 +361,10 @@ bool DriverPayload::createOutputFile()
|
|||||||
writeUInt32(cp, 4, payloadData.size());
|
writeUInt32(cp, 4, payloadData.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug() << "Signature Size:" << signatureSize
|
||||||
|
<< "Aligned Signature Size:" << payloadSignature.size()
|
||||||
|
<< "Payload Size:" << payloadData.size();
|
||||||
|
|
||||||
// Update the Certificate entry
|
// Update the Certificate entry
|
||||||
{
|
{
|
||||||
const int newCertTableSize = certTableSize + payloadHeader.size() + payloadData.size()
|
const int newCertTableSize = certTableSize + payloadHeader.size() + payloadData.size()
|
||||||
@ -372,7 +376,7 @@ bool DriverPayload::createOutputFile()
|
|||||||
|
|
||||||
// Write the input & payload data into output file
|
// Write the input & payload data into output file
|
||||||
if (!writeFile(m_outputFilePath,
|
if (!writeFile(m_outputFilePath,
|
||||||
{ inData, payloadHeader, payloadSignature, payloadData, payloadInfo }))
|
{ inData, payloadHeader, payloadData, payloadSignature, payloadInfo }))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
qDebug() << "Success:" << m_outputFilePath;
|
qDebug() << "Success:" << m_outputFilePath;
|
||||||
|
Loading…
Reference in New Issue
Block a user