1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/test/src
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
..
build Add profiling, performance, and optimization to C test harness. 2022-07-29 10:31:36 -04:00
command Audit mem contexts returned from functions into the calling context. 2023-01-12 17:36:57 +07:00
common Enhance libbacktrace to handle incomplete stack traces. 2023-01-12 10:22:26 +07:00
config Unify code builder binaries into a single binary. 2022-07-20 17:45:39 -04:00
module Audit mem contexts returned from functions into the calling context. 2023-01-12 17:36:57 +07:00
main.c Add unit tests for the unit test build code. 2023-01-05 12:59:06 +07:00
meson.build Improve libbacktrace implementation. 2023-01-11 11:19:26 +07:00
test.c Improve libbacktrace implementation. 2023-01-11 11:19:26 +07:00
valgrind.suppress.co7 Update test container OS versions. 2021-07-18 17:29:20 -04:00