summaryrefslogtreecommitdiff
path: root/cmd/yaffs2.c
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-03 13:39:13 +0300
committerTom Rini <trini@konsulko.com>2022-04-29 18:11:36 +0300
commit49209da54f9580c80e96b5a33351d24d59599926 (patch)
tree82ca848d43781892264c14548e7bfc85c18d79bb /cmd/yaffs2.c
parentbeb341ae7f43a4424ca321315a25fe9133030de2 (diff)
downloadu-boot-49209da54f9580c80e96b5a33351d24d59599926.tar.xz
sound: Fix buffer overflow in square wave generation
Data is written for each channel but is only tracked as having one channel written. This resulted in a buffer overflow and corruption of the allocator's metadata which caused further problems when the buffer was later freed. This could be observed with sandbox unit tests. Resolve the overflow by tracking the writes for each channel. Fixes: f987177db9 ("dm: sound: Use the correct number of channels for sound") Signed-off-by: Andrew Scull <ascull@google.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/yaffs2.c')
0 files changed, 0 insertions, 0 deletions