nextcloud-server/lib
Louis Chmn 30d567fd0e 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-21 17:34:19 +07:00
..
composer fix(sharing): fix potentially broken shares from the past, change 'null' download permission to 'true' 2025-11-17 10:07:44 +07:00
l10n fix(l10n): Update translations from Transifex 2025-11-20 00:14:17 +07:00
private fix(encryption): Increment lastChunkNr when size is off 2025-11-21 17:34:19 +07:00
public refactor(ServerVersion): Add missing type hinting 2025-11-20 16:48:26 +07:00
unstable fix(lexicon): missing doc 2025-07-24 15:56:35 +07:00
base.php fix: Delete legacy OC_Response 2025-09-29 09:35:32 +07:00
versioncheck.php fix(PHP): Drop PHP 8.1 for Nextcloud 33 2025-10-02 11:04:07 +07:00