mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Added the check to avoid NULL pointer dereference in snd_pcm_areas_copy
This commit is contained in:
parent
efb7a55efc
commit
21cbbc6d0d
1 changed files with 5 additions and 4 deletions
|
|
@ -865,6 +865,7 @@ static int snd_pcm_share_start(snd_pcm_t *pcm)
|
|||
snd_pcm_uframes_t cont = pcm->buffer_size - offset;
|
||||
if (cont < frames)
|
||||
frames = cont;
|
||||
if (pcm->stopped_areas != NULL)
|
||||
snd_pcm_areas_copy(pcm->running_areas, offset,
|
||||
pcm->stopped_areas, xfer,
|
||||
pcm->channels, frames,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue