quicky2000 / tartini

A trial to make Tartini (The real time music analysis tool ) to evolve. Original code is located in http://miracle.otago.ac.nz/tartini/download.html
Other
8 stars 4 forks source link

apiInfo dereferenced before non-NULL check in RtApiAlsa::closeStream() #68

Closed quicky2000 closed 4 years ago

quicky2000 commented 4 years ago

In RtApiAlsa::closeStream(), apiInfo is dereferenced at lines: RtAudio.cpp:8027 apiInfo->runnable = true; RtAudio.cpp:8036 snd_pcm_drop( apiInfo->handles[0] ); RtAudio.cpp:8038 snd_pcm_drop( apiInfo->handles[1] );

before first non NULL check occuring at line RtAudio.cpp:8041 if ( apiInfo ) {

quicky2000 commented 4 years ago

Reported to RtAudio in https://github.com/thestk/rtaudio/issues/245