1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
David Steele f4a4af299b
Fix short read in block incremental restore.
During restore it is possible to read all the blocks out of a compressed super block without reading all the input. This is because the compression format may have some trailing bytes that are not required for decompression but are required to indicate that data has ended. If a buffer aligned with the compressed data in a certain way, these last bytes might not be read.

Explicitly read out any final bytes at the end of each super block to handle this case. This should always result in no additional data out and we check for that, but it does move the read position to the beginning of the next compressed super block so decompression can begin without error.
2023-12-27 12:49:47 -03:00
..
certificate SFTP support for repository storage. 2023-05-13 19:16:16 +03:00
code-count Add support for alternate compile-time page sizes. 2023-12-14 13:28:52 -03:00
data
lib/pgBackRestTest Output coverage report on test failure in CI. 2023-11-29 09:31:57 -03:00
src Fix short read in block incremental restore. 2023-12-27 12:49:47 -03:00
.gitignore
ci.pl Build command and configuration reference in C. 2023-10-09 14:03:43 -04:00
container.yaml Remove support for PostgreSQL 9.3. 2023-11-09 12:59:12 -03:00
define.yaml Fix short read in block incremental restore. 2023-12-27 12:49:47 -03:00
Dockerfile SFTP support for repository storage. 2023-05-13 19:16:16 +03:00
test.pl Output coverage report on test failure in CI. 2023-11-29 09:31:57 -03:00
uncrustify.cfg Check for stray execute permissions in test.pl --code-format. 2023-02-01 12:57:04 +07:00
Vagrantfile SFTP support for repository storage. 2023-05-13 19:16:16 +03:00