Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix heap-use-after-free #2141

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Fix heap-use-after-free #2141

wants to merge 1 commit into from

Conversation

dforsi
Copy link
Contributor

@dforsi dforsi commented Jun 1, 2024

This PR fixes issue #2059 but breaks the device pulldown because when changing the current device it doesn't add the new one.

AddressSanitizer: heap-use-after-free /home/sdrangel/sdrbase/audio/audiofifo.cpp:80 in AudioFifo::write(unsigned char const*, unsigned int) AddressSanitizer: heap-use-after-free /home/sdrangel/sdrbase/audio/audiofifo.h:49 in AudioFifo::fill() const

I tested the audio input with my radio and a websdr and the audio output only with the loudspeakers.

Fixes issue f4exb#2059
AddressSanitizer: heap-use-after-free /home/sdrangel/sdrbase/audio/audiofifo.cpp:80 in AudioFifo::write(unsigned char const*, unsigned int)
AddressSanitizer: heap-use-after-free /home/sdrangel/sdrbase/audio/audiofifo.h:49 in AudioFifo::fill() const
Copy link

This PR is going to be closed due to inactivity

@dforsi
Copy link
Contributor Author

dforsi commented Jul 13, 2024

Steps to reproduce the heap-use-after-free in AudioFifo::write:79:

  1. compile Sdrangel with Address Sanitizer
  2. start Sdrangel with an empty configuration
  3. add an Audio Input source
  4. close Sdrangel

Steps to reproduce the heap-use-after-free in AudioFifo::fill:49:

  1. compile Sdrangel with Address Sanitizer
  2. start Sdrangel with an empty configuration
  3. add an Audio Output sink
  4. close Sdrangel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant