1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/test
David Steele 9ca492cecf Audit mem contexts returned from functions into the calling context.
It is possible for functions to accidentally leak child contexts into the calling context, which may use a lot of memory depending on the use case and where it happens.

Use the function return type to determine what should be returned and error when something else is returned. Add FUNCTION_AUDIT_*() macros to handle exceptions.

This checking is only performed during unit tests on the code being covered by the specific unit test.

Note that this does not work yet for memory allocations, i.e. memNew(). These are pretty rare so are not as much of an issue and they can be added in the future.
2023-01-12 17:36:57 +07:00
..
certificate Add TLS Server. 2021-10-18 14:32:41 -04:00
code-count Remove support for PostgreSQL 9.0/9.1/9.2. 2022-12-20 12:20:47 +07:00
data
lib/pgBackRestTest Improve libbacktrace implementation. 2023-01-11 11:19:26 +07:00
src Audit mem contexts returned from functions into the calling context. 2023-01-12 17:36:57 +07:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
ci.pl Add experimental Meson build. 2022-06-03 14:13:56 -04:00
container.yaml Remove support for PostgreSQL 9.0/9.1/9.2. 2022-12-20 12:20:47 +07:00
define.yaml Audit mem contexts returned from functions into the calling context. 2023-01-12 17:36:57 +07:00
Dockerfile Test Dockerfile improvements. 2022-07-21 19:27:58 -04:00
test.pl Improve libbacktrace implementation. 2023-01-11 11:19:26 +07:00
Vagrantfile Update CI to use Ubuntu 22.04 and Fedora 36. 2022-06-06 16:32:20 -04:00