aboutsummaryrefslogtreecommitdiff
path: root/src/strlist.c
Commit message (Collapse)AuthorAgeFilesLines
* Unit tests (#6)Joseph Hunkeler2024-06-201-38/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit of unit tests [WIP] * Address shortcomings and bugs flushed out by unit tests * Enable unit testing in CI workflow * Enable verbose ctests * Handle lack of __FILE_NAME__ define * Only podman support `run --arch` argument * Skip docker build testing if CI system cannot pull an image * Remove errant call to puts() * Identify local repo user * Fix missing xmllint * NULL terminate arrays * Fix filename assignment in is_url mode * Break loop when expected lines are exhausted * strcmp_array expects NULL terminated array. Iterating by size in this case passes NULL to strcmp leading to an invalid read * Remove debug printf statements * Disable a few warnings for tests * Workaround for ctest junit xml truncation * Update checkout@v4 * Prevent false-positive result * Return zero on error * Fix strlist_remove function * Value argument can be constant * Fix test to match changes to startswith and endswith * Add test_ini.c * Fix redaction code to accept NULL pointers in array * And let the caller specify the length of the array of strings to redact. * Redactions now occur directly on authentication strings rather than their command line arguments * Fix BUILD_TESTING_DEBUG * Adds missing -D argument
* Remove unused variableJoseph Hunkeler2024-04-021-1/+0
|
* Changes to strlist_*() functions:Joseph Hunkeler2024-04-021-40/+52
| | | | | Functions that modify the input StrList have been refactored to use `struct StrList **` instead of `struct StrList *`. * Fixes realloc error handling
* Replace free() with guard_* macrosJoseph Hunkeler2024-03-221-6/+6
|
* Remove unused pointerJoseph Hunkeler2024-03-221-5/+0
|
* Fix realloc error handlingJoseph Hunkeler2024-03-221-1/+2
|
* Use GENERIC_ARRAY_FREE instead of split_free()Joseph Hunkeler2024-03-221-1/+1
|
* Use do/while in guard_* macros to make them behave more like functionsJoseph Hunkeler2024-03-101-3/+3
|
* guard_free() all pointersJoseph Hunkeler2023-12-101-3/+3
|
* Remove unused variablesJoseph Hunkeler2023-11-201-4/+0
|
* Fixes potential double-free conditionJoseph Hunkeler2023-10-311-2/+7
| | | | | * Only free pStrList->data[i] and pStrList->data if they are not NULL * Free tokenized string after append
* Initial commitJoseph Hunkeler2023-10-261-0/+483