Created attachment 466764 [details, diff] Fix buffer overflow when writing TIOS file header Both beta7 and beta8 versions of dev-embedded/tigcc segfault when writing the final TIOS executable. This seems to be the same issue mentioned in bug 337059 resurfacing. I believe the patch included in that bug would cause invalid files to be written. I'm attaching a similar patch which seems to fix the issue. Adding '-D_FORTIFY_SOURCE=1' to CFLAGS when building also works as a work around.
Created attachment 466766 [details] emerge --info output
Created attachment 466768 [details] segfault log
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=655d372ce99f3b854940406c77d641b6ae12d05a commit 655d372ce99f3b854940406c77d641b6ae12d05a Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-11-10 12:03:31 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-11-10 12:06:09 +0000 package.mask: Last rite dev-embedded/tigcc Bug: https://bugs.gentoo.org/612384 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/package.mask | 6 ++++++ 1 file changed, 6 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=078360de158062690fdaa1ed7271f32826c21004 commit 078360de158062690fdaa1ed7271f32826c21004 Author: Aaron Bauman <bman@gentoo.org> AuthorDate: 2019-12-09 20:20:31 +0000 Commit: Aaron Bauman <bman@gentoo.org> CommitDate: 2019-12-09 20:29:26 +0000 dev-embedded/tigcc: drop last-rited pkg Closes: https://bugs.gentoo.org/612384 Signed-off-by: Aaron Bauman <bman@gentoo.org> dev-embedded/tigcc/Manifest | 6 - dev-embedded/tigcc/metadata.xml | 8 - dev-embedded/tigcc/tigcc-0.96_beta7.ebuild | 245 ------------------------- dev-embedded/tigcc/tigcc-0.96_beta8-r1.ebuild | 246 -------------------------- profiles/package.mask | 6 - 5 files changed, 511 deletions(-)