summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorTristan Madani <tristan@talencesecurity.com>2026-09-04 20:58:25 +0000
committerTakashi Iwai <tiwai@suse.de>2026-09-06 10:10:43 +0200
commit861111a14740e12c36d363e9830f8daa734279c9 (patch)
treee195d6d142043aa33e15404288fe73ac56923ff0 /scripts/Makefile.thinlto
parentb26a7a80e6bbf8dd17dacb127d12435d79375cf2 (diff)
downloadlinux-861111a14740e12c36d363e9830f8daa734279c9.tar.gz
linux-861111a14740e12c36d363e9830f8daa734279c9.zip
ALSA: usbusx2y: fix in04_last array size mismatch with in04_buf
The in04_last array in struct usx2ydev is declared as char[24], but in04_buf is allocated as sizeof(struct us428_ctls) which is 21 bytes. In i_usx2y_in04_int(), when ctl_snapshot_last == -2 (initialization path): memcpy(usx2y->in04_last, usx2y->in04_buf, sizeof(usx2y->in04_last)); This copies 24 bytes from a 21-byte slab allocation, reading 3 bytes past the end of the source object. Introduce a USX2Y_IN04_SIZE constant defined as sizeof(struct us428_ctls) and use it consistently for the in04_last array, the in04_buf allocation, the URB transfer length, and the comparison loop, replacing the bare 24 and 21 literals throughout. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Tristan Madani <tristan@talencesecurity.com> Link: https://patch.msgid.link/20260904205826.4071119-1-tristmd@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions