1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/test/lib/pgBackRestTest/Module/Mock
David Steele 14016a86e7 Check that sha1 checksum is not empty in manifestFileUpdate().
The manifest test module was setting a blank value here and causing a stack overflow because memcpy() is used instead of strcpy().

This was really just a test issue but add an assert just in case the same were to happen in production code.

Also update a bogus checksum in the integration tests to the correct length to avoid running afoul of the assert.

Found with -fsanitize=address.
2022-03-24 13:13:35 -06:00
..
MockAllTest.pm Check that sha1 checksum is not empty in manifestFileUpdate(). 2022-03-24 13:13:35 -06:00
MockArchiveStopTest.pm Add TLS Server. 2021-10-18 14:32:41 -04:00
MockArchiveTest.pm Add TLS Server. 2021-10-18 14:32:41 -04:00
MockExpireTest.pm Remove CentOS 6 from tests and documentation. 2020-12-02 16:23:05 -05:00
MockStanzaTest.pm Remove extraneous double spaces in code and comments. 2022-03-15 17:55:48 -06:00