Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953992 - app-emulation/86Box-4.2.1-r1 - floppy (or other media) eject crashes 86Box
Summary: app-emulation/86Box-4.2.1-r1 - floppy (or other media) eject crashes 86Box
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 847148
  Show dependency tree
 
Reported: 2025-04-18 12:45 UTC by Andreas Thalhammer
Modified: 2025-04-19 06:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Thalhammer 2025-04-18 12:45:56 UTC
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)
Comment 1 Andreas Thalhammer 2025-04-18 12:49:09 UTC
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
Comment 2 Andreas Thalhammer 2025-04-18 12:50:57 UTC
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
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-19 06:10:59 UTC
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).