glibc/assert
Adhemerval Zanella c1016b727a assert: Refactor assert/assert_perror
It now calls __libc_assert, which contains similar logic. The assert
call only requires memory allocation for the message translation, so
test-assert2.c is adapted to handle it.

It also removes the fxprintf from assert/assert_perror; although it
is not 100% backwards-compatible (write message only if there is a
file descriptor associated with the stderr). It now writes bytes
directly without going through the wide stream state.

Checked on aarch64-linux-gnu.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-09-23 10:29:24 -03:00
..
Depend
Makefile assert: Add test for CVE-2025-0395 2025-02-13 12:33:27 -05:00
Versions
__assert.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
__libc_assert_fail.c assert: Refactor assert/assert_perror 2025-09-23 10:29:24 -03:00
assert-perr.c assert: Refactor assert/assert_perror 2025-09-23 10:29:24 -03:00
assert.c assert: Refactor assert/assert_perror 2025-09-23 10:29:24 -03:00
assert.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-assert-2.c assert: Refactor assert/assert_perror 2025-09-23 10:29:24 -03:00
test-assert-perr.c tests: replace fgets by xfgets 2023-06-13 19:59:08 -04:00
test-assert.c tests: replace fgets by xfgets 2023-06-13 19:59:08 -04:00
tst-assert-c++.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-assert-g++.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-assert-sa-2025-0001.c assert: Add test for CVE-2025-0395 2025-02-13 12:33:27 -05:00