summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-04-03 09:38:18 +0200
committerTakashi Iwai <tiwai@suse.de>2020-04-03 09:38:50 +0200
commitff7e06a55676931ab32db54f69189482a948c5ec (patch)
tree665a9c4f4615b71f0d9ac12c9c6947565410ecd4 /include
parentdbdd24eaac4ecc482e2d433175c0e82b9f107bef (diff)
downloadlinux-ff7e06a55676931ab32db54f69189482a948c5ec.tar.bz2
ALSA: pcm: oss: Fix regression by buffer overflow fix (again)
[ This is essentially the same fix as commit ae769d355664, but it's adapted to the latest code for 5.7; hence it contains no Fixes or other tags for avoid backport confusion -- tiwai ] The recent fix for the OOB access in PCM OSS plugins (commit f2ecf903ef06: "ALSA: pcm: oss: Avoid plugin buffer overflow") caused a regression on OSS applications. The patch introduced the size check in client and slave size calculations to limit to each plugin's buffer size, but I overlooked that some code paths call those without allocating the buffer but just for estimation. This patch fixes the bug by skipping the size check for those code paths while keeping checking in the actual transfer calls. Link: https://lore.kernel.org/r/20200403073818.27943-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions