Discussion:
Segfault in pa_win_wasapi.c when using latest Portaudio from git
(too old to reply)
Roland Winklmeier
2018-09-10 13:18:11 UTC
Permalink
Hey Portaudio Devs,

I was accidentally updating my local portaudio build in parallel to some
other changes I made in my project. Out of a sudden, I got segfaults and
after building a debug version of Portaudio, I realized that the merge
requests for WASAPI have been submitted and cause a nullptr dereference in
pa_win_wasapi.c line 2465.

The reason is that I called Pa_IsFormatSupported() with an output
parameters setting hostApiSpecificStreamInfo to nullptr (which is allowed
according to the docs).
The mentioned line above is dereferencing this pointer without checking
whether its null.

Can some one fix this?

Thanks,
Roland
Dmitry Kostjuchenko
2018-09-10 20:12:33 UTC
Permalink
Hi Roland,

Thank you for your kind report. Fixed!

Please update to the latest version.

Best regards,
Dmitry.
Post by Roland Winklmeier
Hey Portaudio Devs,
I was accidentally updating my local portaudio build in parallel to some
other changes I made in my project. Out of a sudden, I got segfaults and
after building a debug version of Portaudio, I realized that the merge
requests for WASAPI have been submitted and cause a nullptr dereference in
pa_win_wasapi.c line 2465.
The reason is that I called Pa_IsFormatSupported() with an output parameters
setting hostApiSpecificStreamInfo to nullptr (which is allowed according to
the docs).
The mentioned line above is dereferencing this pointer without checking
whether its null.
Can some one fix this?
Thanks,
Roland
_______________________________________________
Portaudio mailing list
https://lists.columbia.edu/mailman/listinfo/portaudio
Loading...