Hide Forgot
Description of problem: Build log: https://download.copr.fedorainfracloud.org/results/siddhesh/mpb.1/fedora-rawhide-x86_64/04659430-clisp/builder-live.log.gz It looks like the test: /root/rpmbuild/BUILD/clisp-de01f0f47bb44d3a0f9e842464cf2520b238f356/build/base/lisp.run -B /root/rpmbuild/BUILD/clisp-de01f0f47bb44d3a0f9e842464cf2520b238f356/build -M /root/rpmbuild/BUILD/clisp-de01f0f47bb44d3a0f9e842464cf2520b238f356/build/base/lispinit.mem -N /root/rpmbuild/BUILD/clisp-de01f0f47bb44d3a0f9e842464cf2520b238f356/build/locale -E UTF-8 -Emisc 1:1 -Epathname 1:1 -norc -C -i tests/tests -x "(ext:exit (plusp (or (run-some-tests :dirlist '( \"i18n/\" \"syscalls/\" \"regexp/\" \"readline/\") :srcdir \"../modules/\" :outdir \"./\")\ 0)))" aborts due to a buffer overflow when the package is built with -D_FORTIFY_SOURCE=3. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Either install redhat-rpm-config from https://copr.fedorainfracloud.org/coprs/siddhesh/mpb.1/ OR Edit /usr/lib/rpm/redhat/macros and change _FORTIFY_SOURCE=2 to _FORTIFY_SOURCE=3. Actual results: Abort due to buffer overflow. Expected results: No Abort. Additional info: The ENSURE_6X macro allocates name##_bytelen+6 for c_template, which doesn't seem to have enough space for a terminating NULL. As a result this trips on the fortification check in __strcat_chk.
Good find! Upstream MR: https://gitlab.com/gnu-clisp/clisp/-/merge_requests/4.
FEDORA-2022-1a7a746b45 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1a7a746b45
FEDORA-2022-1a7a746b45 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.