mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
The Advanced Linux Sound Architecture (ALSA) - library
The memcpy() function in snd_pcm_area_copy() should not be called with the overlapped areas. Alex discovered - using own LD_PRELOAD checked for memcpy() input - that the memcpy() is called with src == dst. For some special plugin combos (rate+softvol+hw for example), the same areas with same offsets can be asked to be copied (softvol). The collapse check uses own areas created on heap, causing dst_area == src_area && dst_offset == src_offset check bypassed. Two fixes are in this patch: - use assert to check the memcpy() input for future triggers - bypass the snd_pcm_area_copy() call for collapsed identical areas Reported-by: Alexander Kruppa <akruppa@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz> |
||
|---|---|---|
| alsalisp | ||
| aserver | ||
| doc | ||
| include | ||
| m4 | ||
| modules | ||
| src | ||
| test | ||
| utils | ||
| .gitignore | ||
| acinclude.m4 | ||
| ChangeLog | ||
| configure.in | ||
| COPYING | ||
| gitcompile | ||
| INSTALL | ||
| Makefile.am | ||
| MEMORY-LEAK | ||
| NOTES | ||
| TODO | ||