summaryrefslogtreecommitdiff
path: root/lib/talloc/ABI
AgeCommit message (Collapse)AuthorFilesLines
2025-09-02lib: Add talloc_realloc_zero()talloc-2.4.4Volker Lendecke2-0/+83
Like talloc_realloc, zeroing out expanded memory Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-02-06talloc: version 2.4.3talloc-2.4.3Jule Anger2-0/+82
* Testsuite and documenation fixes * Add LGPLv3 LICENSE file Signed-off-by: Jule Anger <janger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2024-01-29talloc: release 2.4.2talloc-2.4.2Jule Anger2-0/+82
- build with Python 3.12 (bug #15513) - documentation fixes BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513 Signed-off-by: Jule Anger <janger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2023-07-19talloc: release 2.4.1talloc-2.4.1Stefan Metzmacher2-0/+82
* Remove remaining, but broken python2 support * Spelling fixes * Remove unneeded va_copy() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2023-01-18talloc: version 2.4.0talloc-2.4.0Stefan Metzmacher2-0/+82
* Add talloc_asprintf_addbuf() * Support python 3.12 Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jule Anger <janger@samba.org>
2022-12-14lib: Move talloc_asprintf_addbuf() to tallocVolker Lendecke2-0/+82
I wanted to use this in debug.c, but this would have meant to pollute debug's deps with a lot of stuff. Also, looking through uses of talloc_asprint_append(), very many of those don't do NULL checks properly and could benefit from the _addbuf() flavor. We can add a vasprintf variant later if the need shows up. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2022-06-08talloc: version 2.3.4talloc-2.3.4Stefan Metzmacher2-0/+81
* Fix build problems BUG: https://bugzilla.samba.org/show_bug.cgi?id=15071 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-07-14talloc: version 2.3.3talloc-2.3.3Stefan Metzmacher2-0/+81
- python: Ensure reference counts are properly incremented - Bug 9931: change pytalloc source to LGPL Signed-off-by: Stefan Metzmacher <metze@samba.org>
2020-11-09lib: talloc: Fix memlimit on pool realloc.Jeremy Allison2-0/+81
We only have to do the memlimit check before any real malloc or realloc. Allocations out of a memory pool have already been counted in the memory limit, so don't check in those cases. This is an application-visible change (although fixing a bug) so bump the ABI to 2.3.1 -> 2.3.2. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14540 Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-11-18talloc: Release talloc 2.3.1talloc-2.3.1Uri Simchoni2-0/+81
* Upgrade waf to 2.0.18 to fix a cross-compilation issue BUG: https://bugzilla.samba.org/show_bug.cgi?id=13846 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-07-22talloc: Release talloc 2.3.0talloc-2.3.0Andrew Bartlett2-0/+81
* add pytalloc_get_name() to safely access te talloc name in Python bindings * Use a new minor version to allow talloc updates in the 4.11 release stream Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz
2019-03-21talloc: Release talloc 2.2.0talloc-2.2.0Andrew Bartlett2-0/+80
* Remove pytalloc_CObject_FromTallocPtr() * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) * New minor version to allow Samba 4.10 to release a talloc if required from that branch Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-03-21ABI: Remove unused .py3*.sigs filesAndrew Bartlett12-161/+0
These are no longer used by the build system so avoid confusion by removing them from the tree. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-02-26talloc: version 2.1.16talloc-2.1.16Stefan Metzmacher3-0/+96
* Fix standalone build of talloc. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2019-01-15talloc: version 2.1.15talloc-2.1.15Stefan Metzmacher3-0/+96
* Deprecate talloc_set_memlimit() and talloc_autofree_context() * Fix undefined behavior in talloc_memdup * The build uses python3 by default: * --extra-python would take python2 now * To build with python2 only use: PYTHON=python2 ./configure PYTHON=python2 make PYTHON=python2 make install Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
2018-07-12talloc: version 2.1.14talloc-2.1.14Stefan Metzmacher3-0/+96
* Fix some typos in the comments * Remove extra 0x prefix for the "%p" format specifiers, avoiding 0x0x0 strings in the output. * make sure we link extra-python versions of libraries Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-04-05talloc: version 2.1.13talloc-2.1.13Stefan Metzmacher3-0/+96
* Use atexit() again instead of a library destructor (bug #13366) Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Apr 5 15:53:16 CEST 2018 on sn-devel-144
2018-03-21talloc: version 2.1.12talloc-2.1.12Stefan Metzmacher3-0/+96
* Fix documentation typo * Fix compilation with -Wstrict-overflow=2 * Use a library destructor instead of atexit() if available (bug #7587) Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Mar 21 18:39:33 CET 2018 on sn-devel-144
2018-01-12talloc: version 2.1.11talloc-2.1.11Stefan Metzmacher3-0/+96
* disable-python - fix talloc wscript if bundling disabled * Do not disclose the random talloc magic in free()'ed memory Signed-off-by: Stefan Metzmacher <metze@samba.org>
2017-07-21talloc: version 2.1.10talloc-2.1.10Stefan Metzmacher3-0/+96
* build, documentation and python3 improvements Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-02-25talloc: version 2.1.9talloc-2.1.9Stefan Metzmacher5-6/+96
* fix some coverity defects * fix TALLOC_VERSION_MINOR and talloc_version_minor() * add new tests * add pytalloc_get_type() * add pytalloc_GenericObject_{steal,reference}[_ex]() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-02-25pytalloc: add pytalloc_GenericObject_{steal,reference}[_ex]()Stefan Metzmacher2-0/+6
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2016-07-28talloc: version 2.1.8talloc-2.1.8Stefan Metzmacher3-0/+90
* performance improvements * build fixes * documentation updates Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2016-05-05talloc: version 2.1.7talloc-2.1.7Stefan Metzmacher3-0/+90
* Fix memory leak when destructors reparent children. (bug #11901) Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 5 22:33:04 CEST 2016 on sn-devel-144
2016-03-08pytalloc: Add pytalloc_BaseObject_PyType_Ready() wrapperAndrew Bartlett2-0/+2
This avoids the need for the caller to set tp_base and tp_basicsize and so removes those as possible errors. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-03-08talloc: Bump version numberAndrew Bartlett3-0/+88
The removal of the macros and replacement with proper functions is a API, but not ABI break. Only code that incorrectly used the structure either in function signatures or to access the members directly will need to be modified before being built against this version of talloc. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2015-11-05talloc: version 2.1.5talloc-2.1.5Stefan Metzmacher3-0/+76
* Minor build fixes Signed-off-by: Stefan Metzmacher <metze@samba.org>
2015-10-09talloc: Increment minor version due to added talloc_test_get_magic.Adrian Cochrane2-0/+71
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-21talloc: version 2.1.3talloc-2.1.3Stefan Metzmacher2-0/+70
* improved python3 bindings * documentation fixes regarding talloc_reference() and talloc_unlink() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2015-03-09talloc: version 2.1.2talloc-2.1.2Stefan Metzmacher2-0/+70
Changes: - Allow destructors to reparent the object - Allow destructors to remove itself - Build improvements Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
2014-05-16talloc: version 2.1.1talloc-2.1.1Stefan Metzmacher2-0/+70
Changes: - documentation updates - a fix for pytalloc-util.pc - performance improvements here and there - fixed compiler warnings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri May 16 19:51:26 CEST 2014 on sn-devel-104
2013-09-08talloc: Add talloc_pooled_objectVolker Lendecke2-0/+70
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-10-05Add memory limiting capability to tallocSimo Sorce2-0/+69
By calling talloc_set_memlimit() we can now set a max memory limit for a whole talloc hierarchy. ANy attempt to allocate memory beyond the max allowed for the whole hierarchy wil cause an allocation failure. Stealing memory correctly accounts for used memory in the old and the new hierarchy but exceeding the memory limit in the new parent will not cause a failure.
2011-09-15talloc: change version to 2.0.7talloc-2.0.7Stefan Metzmacher2-0/+68
The version change is needed because the ABI file of the pytalloc code was fixed. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 22:32:59 CEST 2011 on sn-devel-104
2011-08-10pytalloc: Regenerate ABI file.Jelmer Vernooij1-0/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Aug 10 16:51:11 CEST 2011 on sn-devel-104
2011-08-10pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij1-0/+5
2011-08-09talloc: prepare for 2.0.6 releaseAndrew Tridgell1-0/+62
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 04:03:49 CEST 2011 on sn-devel-104
2011-01-05talloc: change version to 2.0.5 after a critical bugfixStefan Metzmacher1-0/+62
metze
2010-12-03talloc: add ABI/talloc-2.0.4.sigsStefan Metzmacher1-0/+62
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 3 11:35:45 CET 2010 on sn-devel-104
2010-04-20talloc: there is no ambiguity when freeing a ptr with a null parentAndrew Tridgell1-0/+62
when a ptr has a single reference and a NULL parent, then talloc_free(ptr) is not ambiguous, as the caller could not have done a talloc_free(NULL) to free the memory Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-04-18build: more adjustments for the ABI type name mapsAndrew Tridgell1-3/+3
- use 'va_list' instead of 'struct __va_list_tag *' Using the C name for va_list is preferable - add support for negative ABI name matches in abi_match=. That is used to exlude ldb_*module_ops from the ldb ABI - don't include the ldb module ops or backend ops in the ABI
2010-04-18s4-waf: rebuild signature files with the api type mapsAndrew Tridgell1-3/+3
This is not strictly necessary, as the old types would compare equal, but it is neater to use the generic type names
2010-04-18talloc-waf: added ABI checking for tallocAndrew Tridgell1-0/+62