nextcloud/lib
Louis Chmn 64fed0c712 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:23 +00:00
..
composer fix: Fix user collaborators returned when searching for mail collaborators 2025-11-12 13:22:25 +01:00
l10n fix(l10n): Update translations from Transifex 2025-11-23 00:13:43 +00:00
private fix(encryption): Increment lastChunkNr when size is off 2025-11-25 09:19:23 +00:00
public Merge pull request #55762 from nextcloud/backport/54953/stable32 2025-11-12 20:25:30 -01:00
unstable fix(lexicon): missing doc 2025-07-24 15:56:35 -01:00
base.php Merge pull request #54713 from nextcloud/fix/fix-status.php-cookies 2025-09-01 11:48:27 +02:00
versioncheck.php feat(PHP): Allow PHP 8.4 2024-11-08 12:59:12 +01:00