nextcloud/lib
Louis Chmn 8afe1dd53a fix(encryption): Increment lastChunkNr when size is off
When computing the unencrypted file size, we need the size of the last encrypted chunk as its size is usually not the regular 8192 bits.

To avoid reading the whole file, we seek directly to that last chunk based on the expected file size. When the expected file size is smaller than the actual one, we have a logic in place to continue reading until we reach the end of the file.

In that logic, we forgot to increment the `$lastChunkNr` which is important when we later check the signature of the chunk.

This commit adds that missing increment.

Signed-off-by: Louis Chmn <louis@chmn.me>
2025-11-25 09:19:09 +00:00
..
composer feat: allow object store configuration aliases for easier migrations 2025-11-20 15:36:11 +01:00
l10n fix(l10n): Update translations from Transifex 2025-11-23 00:13:49 +00:00
private fix(encryption): Increment lastChunkNr when size is off 2025-11-25 09:19:09 +00:00
public Merge pull request #55962 from nextcloud/backport/55955/stable31 2025-11-15 13:11:20 +01:00
unstable fix(lexicon): syntax 2025-01-14 10:38:15 -01:00
autoloader.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
base.php chore: Add comment to make it clear the bail out for status.php should 2025-09-02 12:07:38 +02:00
versioncheck.php feat(PHP): Allow PHP 8.4 2024-11-08 12:59:12 +01:00