1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-14 07:40:35 +00:00
Olaf Seibert 86ffe4bec2 sim_disk.c: only free filebuf if it was allocated here too.
PDP11/pdp11_rq.c re-uses ->filebuf as a sector buffer (under the #defined
name rqxb) and allocates it as such. If an RQ disk is detached and
another attached, this buffer would be lost and the pointer reset to
NULL. sim_disk.c would only allocate the buffer if UNIT_BUFABLE is set,
which means to buffer the whole disk. Since this rightly isn't set on RQ
disks, the pointer would remain NULL and segfaults would ensue.  See
open-simh issue 274.
add comment about safe re-use of filebuf
2023-07-16 16:38:19 -04:00
..
2022-10-29 14:15:41 -04:00
2015-02-13 06:18:24 -08:00
2022-10-29 14:15:41 -04:00
2018-09-10 15:13:06 +02:00