Skip to content

Fix erroneous 2 TiB limit for hidden file containers in GUI wizard#1672

Merged
idrassi merged 1 commit intoveracrypt:masterfrom
Computeiful:fix-linux-hidden-file-container-gt-2tb
Apr 13, 2026
Merged

Fix erroneous 2 TiB limit for hidden file containers in GUI wizard#1672
idrassi merged 1 commit intoveracrypt:masterfrom
Computeiful:fix-linux-hidden-file-container-gt-2tb

Conversation

@Computeiful
Copy link
Copy Markdown
Contributor

This PR fixes: #1560

Summary

Fix the GUI wizard incorrectly rejecting hidden file containers larger than 2 TiB.

Currently the outer hidden-volume size check is applied even when the selected target is a normal file. In that case the wizard uses the file-hosted sector size constant, so the FAT sector-count check incorrectly caps the GUI flow at 2 TiB.

This change restricts that check to device-hosted paths only:

if (SelectedVolumePath.IsDevice() && OuterVolume && VolumeSize > TC_MAX_FAT_SECTOR_COUNT * SectorSize)

This has been tested on Linux using a 3 TiB file.

@idrassi
Copy link
Copy Markdown
Member

idrassi commented Apr 13, 2026

Thank you for the fix.

@idrassi idrassi merged commit 2ed98b5 into veracrypt:master Apr 13, 2026
1 check failed
@Computeiful Computeiful deleted the fix-linux-hidden-file-container-gt-2tb branch April 13, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hidden volume file container size limited to 2TB using GUI wizard

2 participants