summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/atexit.c
diff options
context:
space:
mode:
authorderaadt <>2025-11-13 10:34:32 +0000
committerderaadt <>2025-11-13 10:34:32 +0000
commit825e052c574fe0fd3afe3cf1322f333551ca4888 (patch)
tree91903c439b8433ac80e85f001a34fa1b2975949a /src/lib/libc/stdlib/atexit.c
parent286cd02a2b95cd94707d1ae63155b59302dfefc7 (diff)
downloadopenbsd-825e052c574fe0fd3afe3cf1322f333551ca4888.tar.gz
openbsd-825e052c574fe0fd3afe3cf1322f333551ca4888.tar.bz2
openbsd-825e052c574fe0fd3afe3cf1322f333551ca4888.zip
the structure produced has alignment, which contained uninitialized data.
This is obviously fixed by using calloc(), but it was also observed that the precalculated storage requirement was higher than what is actually filled. So all the math has been rewritten to be byte accurate. Temporarily, a syslog_r check is added to report if we ever get count inconsistancy again so that can be fixed quickly. ok claudio
Diffstat (limited to 'src/lib/libc/stdlib/atexit.c')
0 files changed, 0 insertions, 0 deletions