Skip to content

Commit

Permalink
Not allowing hard links on payloads to ensure it isn't modified after…
Browse files Browse the repository at this point in the history
… verification. We don't mind hard links on containers because the extracted files will not be suspectible to modifications
  • Loading branch information
nirbar committed Oct 30, 2024
1 parent 0cf3bdf commit 7db24f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/burn/engine/apply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ static HRESULT AcquireContainerOrPayload(
DWORD64 qwFileSize = 0;
BOOL fMinimumFileSize = FALSE;
BOOL fEqual = FALSE;
BOOL fAllowHardLink = !*pfRetry;
BOOL fAllowHardLink = pContainer && !*pfRetry; // Not allowing hard links on payloads to ensure it isn't modified after verification. We don't mind hard links on containers because the extracted files will not be suspectible to modifications

if (pContainer)
{
Expand Down

0 comments on commit 7db24f4

Please sign in to comment.