Every time I eject a floppy image in 86Box 4.2.1 it crashes: *** buffer overflow detected ***: terminated After some investigation, I found that this has been fixed upsteam in January: https://github.com/86Box/86Box/issues/5072 I tried to backport the upstream available patch to 86Box 4.2.1 by myself, but failed. Here's the patch, which doesn't apply to 4.2.1 (apparently there were some changes in-between) https://github.com/86Box/86Box/commit/6b05602ea4d1593edf8d0fff17e733b182e94637 This didn't happen with 4.2, so either a patch should be backported, or 4.2.1 should be masked unstable and 4.2 made available again (it was removed from the Gentoo portage repository). Or version-bump any newer version that has this fixed. Reproducible: Always Steps to Reproduce: 1. Run 86Box 2. Insert a floppy disk. 3. Eject the floppy disk --> crash (buffer overflow)
Sorry, my bad... That's the correct upstream bug report: 86Box Buffer Overflow with QT6 GUI on Media Eject #4913 https://github.com/86Box/86Box/issues/4913 The other one doesn't have the patch mentioned: Ejecting floppy disk causes 86Box 4.2.1 crashing (4.2 works fine) #5072 https://github.com/86Box/86Box/issues/5072
And one more upstream bug report about the same issue: Mounting an ISO file (CD) or ejecting a floppy disk image results in a buffer overflow (SIGABRT) #4828 https://github.com/86Box/86Box/issues/4828
Just for completeness: are you on the hardened profile or otherwise using sys-devel/gcc[hardened], or not? (It matters as to whether it's _FORTIFY_SOURCE=3 or _FORTIFY_SOURCE=2).