mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
We are setting ldb_debug_string() as the ldb debug function. The context we give it is only valid as long as we're in that function. On failure, we jump to the teardown function. The pointer for debug_string isn't valid anymore, but the ldb debug system still points to that address, and when we store the location of the allocated string, we overwrite memory, in that case something from talloc and a talloc_free() then jumps into the nirvana. Thanks to Florian Weimer who helped debugging this. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Isaac Boukris <iboukris@samba.org>
compression - Various compression algorithms (MSZIP, lzxpress) popt - Command-line option parsing library replace - Provides replacements for standard (POSIX, C99) functions not provided by the host platform. subunit - Utilities and bindings for working with the Subunit test result reporting protocol. talloc - Hierarchical pool based memory allocator tdb - Simple but fast key/value database library, supporting multiple writers torture - Simple unit testing helper library