summaryrefslogtreecommitdiffstats
path: root/libcnary
AgeCommit message (Collapse)AuthorFilesLines
2023-02-06libcnary: Updated typedefs of node_t and node_list_t to contain pointerGravatar Nikias Bassen4-65/+77
This makes the code more readable. Obviously all the code that uses it is also updated.
2021-01-25Replace malloc + memset with calloc where appropriateGravatar Rosen Penev2-6/+4
calloc is faster for big allocations. It's also simpler. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-09Unfold automake variables into multiple lines for maintainabilityGravatar Martin Szulecki1-7/+10
2020-06-08Remove whitespace errors from all filesGravatar Martin Szulecki1-1/+1
2019-09-03libcnary: [BUGFIX] Set list->end to NULL when removing last and only element ↵Gravatar Nikias Bassen1-0/+2
from list This prevents a UaF in node_list_add. The issue became visible after removing the last (and only) item from a PLIST_DICT or PLIST_ARRAY node, and then adding a new item - the item will not make it into the actual dictionary or array because the list->end pointer points to invalid memory, effectively causing memory corruption.
2019-01-21libcnary: Remove list.c/list.h and just do everything in node_list.cGravatar Nikias Bassen4-94/+6
2018-12-10Remove node_iterator and operate on node list directly to improve memory usageGravatar Nikias Bassen6-254/+1
2018-11-28libcnary: Remove redundant members from node_t structGravatar Nikias Bassen2-32/+17
2018-07-24libcnary: Fix memleak in node_debug()Gravatar Bastien Nocera1-0/+1
An iter was created but never destroyed.
2017-03-28libcnary: Remove unused 'node' parameter from node_list_create()Gravatar Nikias Bassen3-3/+3
2016-11-10libcnary: Fix possible NULL pointer dereference in node_iterator_create()Gravatar Nikias Bassen1-1/+1
When NULL is passed to node_iterator_create() the code tries to access the begin element of the node list and causes a NULL pointer dereference. The value of list is checked a few lines down and iterator->value is then properly assigned in node_iterator_bind().
2014-05-20Rename "index" variable as it shadows global declaration on older systemsGravatar Martin Szulecki2-17/+17
2014-02-13fix make distcheckGravatar Nikias Bassen1-1/+1
2013-12-13libcnary: silence two compiler warningsGravatar Nikias Bassen1-2/+2
2013-12-13change build system to autotoolsGravatar Nikias Bassen3-37/+18
2012-04-24libcnary: return removed/detached index in node_list_remove/node_detachGravatar Nikias Bassen2-4/+7
2012-01-12libcnary: fix missing return value and missing variable initializationGravatar Nikias Bassen1-2/+2
2012-01-11node_list: Fix memory corruptionGravatar Nikias Bassen1-1/+7
The corruption occured if you removed the last node from the list and later add a new node to the list.
2011-06-25Updates libcnary sources (adding license info)Gravatar Nikias Bassen13-0/+694
2011-06-13Bundle libcnary for better packaging1.5Gravatar Nikias Bassen15-0/+760
2011-06-13Remove libcnary submoduleGravatar Nikias Bassen1-0/+0
2011-05-27Add submodule libcnaryGravatar Nikias Bassen1-0/+0