Skip to content

Commit

Permalink
Fix 'pulseaudioHostApi' use-after-free/null ptr deref in PaPulseAudio…
Browse files Browse the repository at this point in the history
…_Initialize (#847)

The call to PaPulseAudio_UnLock( pulseaudioHostApi->mainloop ) in error-label is performed on 'pulseaudioHostApi' after 'pulseaudioHostApi' has been freed by PaPulseAudio_Free and set to NULL.
  • Loading branch information
bear101 authored Oct 6, 2023
1 parent ba3f91f commit 6c9e455
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/hostapi/pulseaudio/pa_linux_pulseaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@ PaError PaPulseAudio_Initialize( PaUtilHostApiRepresentation ** hostApi,
pulseaudioHostApi = NULL;
}

PaPulseAudio_UnLock( pulseaudioHostApi->mainloop );
return result;
}

Expand Down

0 comments on commit 6c9e455

Please sign in to comment.