github Zibri/VICE r45691o
r45691 OpenSUSE TumbleWeed

latest releases: r46108, r46108o, r46108u...
11 months ago

Changelog:

r45691 | rhialto | 2025-06-01 13:21:15 +0000 (Sun, 01 Jun 2025) | 19 lines

c1541: fix segfault when not attaching disk image.

When a disk image is attached, vdrive_device_setup() is called to set up the
vdrive struct. This includes memory for the disk error string buffer.

If you do a "c1541 -write foo bar" command (so without attaching a disk image),
c1541 wants to write a DRIVE NOT READY to the error string buffer. This
segfaults because it has not been allocated.

Fix: Call vdrive_device_setup() right after a vdrive is allocated, so it is
always good to use. Also, when freeing the buffers in vdrive_device_shutdown(),
set them to NULL to make sure they are not re-used accidentally.
When vdrive_device_setup() is called again for attaching a disk image, be
paranoid and first call vdrive_device_shutdown() on it.
When detaching an image, call vdrive_device_shutdown() even if no image was
attached. This prevents memory leaks.

Also: replace some 8's by DRIVE_UNIT_MIN.

------------------------------------------------------------------------
r45689 | gpz | 2025-05-20 22:09:53 +0000 (Tue, 20 May 2025) | 1 line

include extra SIDs in the I/O list in the monitor in vsid, fixes bug #1852
------------------------------------------------------------------------
r45688 | gpz | 2025-05-20 21:37:25 +0000 (Tue, 20 May 2025) | 1 line

one header isn't enough
------------------------------------------------------------------------
r45687 | gpz | 2025-05-20 20:51:00 +0000 (Tue, 20 May 2025) | 1 line

blind fix for direct-x. crossing fingers
------------------------------------------------------------------------
r45686 | gpz | 2025-05-20 20:07:39 +0000 (Tue, 20 May 2025) | 1 line

workaround 'fix' sortof for bug #2133 - instead of getting the canvas width from the geometry, recalculate it from the texture size. Also print a warning if the two values do not match, since that indicates a problem elsewhere.
------------------------------------------------------------------------

Don't miss a new VICE release

NewReleases is sending notifications on new releases.