Index | Thread | Search

From:
izzy Meyer <izder456@disroot.org>
Subject:
Re: audio/lmms: Fix memory corruption during MIDI input/output
To:
Alexandre Ratchov <alex@caoua.org>
Cc:
ports@openbsd.org
Date:
Fri, 25 Apr 2025 17:32:33 -0500

Download raw body.

Thread
On Thu, 24 Apr 2025 15:33:18 +0200
Alexandre Ratchov <alex@caoua.org> wrote:

> MIDI output and input are handled on different threads, so a mutex is
> required to serialize access to the mio_hdl structure.
> 
> This diff fixes disconnection from sndiod caused by corruption of the
> mio_hdl structure.
> 
> While we're at it, fix the input event loop to not stop if a signal is
> received during poll(4). If so just recheck the m_quit flag and retry.
> 
> OK?
> 

Thanks for this fix Alexandre. I produce on OpenBSD using LMMS. Tested
on amd64. Seems good from some minimal testing on my production
machine.

-- 
iz (she/her)

> i like to say mundane things,
> there are too many uninteresting things
> that go unnoticed.

izder456 (dot) neocities (dot) org