Possible stack buffer overflow in WASAPI backend
I am using miniaudio 0.11.23 (@commit f40cf03f80cdb7e741d43e53b7e706e8c1394bcf) with the WASAPI backend in a 32-bit application on Windows 11 (x64). When Address Sanitizer (ASan) is enabled, ASan reports a stack buffer overflow every time the application calls ma_engine_init() . This issue does not occur when using other backends such as DirectSound or WMME, so it appears to be specific to the WASAPI backend.
I have attached the full ASan report, including the call stack. Could you please help verify whether this is an actual stack buffer overflow, and if so, whether it may be addressed?
Thank you very much for your time and for maintaining this project!
Thanks. I had a look at this and I can't see anything obvious on the miniaudio side. My instinct is that this is coming from inside Windows itself because I can see in the backtrace there are several calls to internal Windows DLLs. Not sure how I can address this one.