URL: <https://savannah.gnu.org/bugs/?67722>
Summary: double free on closing an already closed file
Group: Gforth
Submitter: phr
Submitted: Wed 19 Nov 2025 08:44:13 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 19 Nov 2025 08:44:13 AM UTC By: paul r <phr>
Happens in both gforth 0.7.3 (Debian) and "bleeding edge" 0.7.9_20251001
basically:
s" somefile" r/o open-file ( fd ior ) drop constant fd \ success
fd close-file drop \ success
fd close-file drop \ double-free and abort in fclose
fclosing twice should just be a normal error caught by forth.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67722>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
