summaryrefslogtreecommitdiff
path: root/src/ck.c
Commit message (Collapse)AuthorAgeFilesLines
* [core] use C23 memset_explicit() were availableGlenn Strauss2023-03-011-0/+10
|
* [multiple] quiet some coverity false positivesGlenn Strauss2023-01-131-1/+1
|
* [core] ck_calloc() ck_malloc() ck_realloc_u32()Glenn Strauss2022-12-101-1/+35
| | | | | | | | checking functions to wrap calloc(), malloc(), and realloc(), which ck_assert() that memory allocation succeeds ck_realloc_u32() additionally checks for integer overflow in args and that nmemb fits in uint32_t
* [core] fix compiler warning in 32-bit buildGlenn Strauss2021-11-241-1/+1
|
* [core] make ck_memeq_const_time() more generic (#3112)Glenn Strauss2021-10-271-8/+7
| | | | | | | | | | | make ck_memeq_const_time() more generically reusable remove implementation requirements that strings be '\0' terminated, or at least have an initialized byte following each string (s[len]) x-ref: https://redmine.lighttpd.net/issues/3112 "mod_auth cache password doesn't match"
* [core] add comment to ck_memeq_const_time()Glenn Strauss2021-10-161-0/+5
| | | | add comment to ck_memeq_const_time() with some implementation details
* [multiple] __attribute_nonnull__ now takes paramsGlenn Strauss2021-10-051-1/+1
| | | | | | | | | define __attribute_nonnull__(params) with params to match recent changes in glibc development (targetting glibc 2.35 in Feb 2022) x-ref: new __attribute_nonnull__(params) conflicts with third-party https://sourceware.org/bugzilla/show_bug.cgi?id=28425
* [core] portability tweaks for various platforms/ccGlenn Strauss2021-10-011-0/+5
|
* [core] change backtrace format to put addr firstGlenn Strauss2021-09-081-2/+2
| | | | (better monospaced alignment of frame num, addr, offset, name)
* [core] expose ck_bt() for debuggingGlenn Strauss2021-09-081-9/+21
|
* [core] move backtrace and assert macros to ck.[ch]Glenn Strauss2021-08-271-1/+100
|
* [core] comment out ck_getenv_s() (unused)Glenn Strauss2021-08-271-0/+2
| | | | | ck_getenv_s() not currently used in lighttpd; lighttpd process env is stable
* [multiple] move const time cmp funcs to ck.[ch]Glenn Strauss2021-08-271-0/+43
| | | | | http_auth_const_time_memeq_pad() -> ck_memeq_const_time() http_auth_const_time_memeq() -> ck_memeq_const_time_fixed_len()
* [core] ck.[ch] - C11 Annex K wrappersGlenn Strauss2021-08-271-0/+256
(selected functions; not complete) (import from one of my development branches from 2016) define safe_memclear() -> ck_memzero() for transition