1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-22 04:22:40 -05:00

Windows: fix EFI DcsProp rewrite handling

Ensure ESP file writes have true replace semantics even when the operation is delegated to the elevated COM helper. This prevents shorter edits of EFI\VeraCrypt\DcsProp from leaving stale bytes at the end of the file.

Also XML-escape decoded EFI boot configuration values before serializing them, preserving values containing characters such as <, > and & during EfiBootConf save/update paths.

Fixes #954.
This commit is contained in:
Mounir IDRASSI
2026-05-30 19:42:26 +09:00
parent 329bc18bb6
commit 91a01826aa
2 changed files with 69 additions and 2 deletions
+1
View File
@@ -44,6 +44,7 @@ namespace VeraCrypt
DWORD Read (uint8 *buffer, DWORD size);
void Write (uint8 *buffer, DWORD size);
void SeekAt (int64 position);
void SetEnd ();
void GetFileSize (unsigned __int64& size);
void GetFileSize (DWORD& dwSize);
bool IoCtl(DWORD code, void* inBuf, DWORD inBufSize, void* outBuf, DWORD outBufSize);