Skip to content

Conversation

@fengalin
Copy link
Contributor

@fengalin fengalin commented Mar 7, 2021

The GETDICTEXT macro used to perfom one pass on the provided int
list to check the actual item types brefore allocating and filling
the target buffer. The python list was not read again causing the
buffer to be filled with the last value read during the type check.

This patch performs the type check as well as buffer fill in one go.
The buffer is freed if an item is found to be of a wrong type.

The `GETDICTEXT` macro used to perfom one pass on the provided int
list to check the actual item types brefore allocating and filling
the target buffer. The python list was not read again causing the
buffer to be filled with the last value read during the type check.

This patch performs the type check as well as buffer fill in one go.
The buffer is freed if an item is found to be of a wrong type.
@jean-emmanuel
Copy link

jean-emmanuel commented Apr 26, 2022

I confirm without this PR pyalsa is not able to send sysex events (tested on python3).

@perexg perexg closed this in a9e9bbf May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants