Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612384 - dev-embedded/tigcc: removal (was: segfaults while linking)
Summary: dev-embedded/tigcc: removal (was: segfaults while linking)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2019-12-09
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: EAPI0Removal
  Show dependency tree
 
Reported: 2017-03-12 03:10 UTC by Robert Gill
Modified: 2019-12-09 20:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix buffer overflow when writing TIOS file header (ld-tigcc-buffer-overflow.patch,822 bytes, patch)
2017-03-12 03:10 UTC, Robert Gill
Details | Diff
emerge --info output (emerge.info.txt,5.95 KB, text/plain)
2017-03-12 03:11 UTC, Robert Gill
Details
segfault log (segfault.txt,2.50 KB, text/plain)
2017-03-12 03:11 UTC, Robert Gill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Gill 2017-03-12 03:10:43 UTC
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.
Comment 1 Robert Gill 2017-03-12 03:11:15 UTC
Created attachment 466766 [details]
emerge --info output
Comment 2 Robert Gill 2017-03-12 03:11:55 UTC
Created attachment 466768 [details]
segfault log
Comment 3 Larry the Git Cow gentoo-dev 2019-11-10 12:06:27 UTC
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(+)
Comment 4 Larry the Git Cow gentoo-dev 2019-12-09 20:29:43 UTC
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(-)