summaryrefslogtreecommitdiff
path: root/drivers/virt/acrn
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-04-15 14:02:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-08 19:44:21 +0100
commit008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b (patch)
tree0b3997b99341fe783a64a376586d65bc96cf0548 /drivers/virt/acrn
parentdd5a440a31fae6e459c0d6271dddd62825505361 (diff)
speakup: Fix sizeof() vs ARRAY_SIZE() bug
The "buf" pointer is an array of u16 values. This code should be using ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds. Fixes: c8d2f34ea96e ("speakup: Avoid crash on very long word") Cc: stable@vger.kernel.org Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Link: https://lore.kernel.org/r/d16f67d2-fd0a-4d45-adac-75ddd11001aa@moroto.mountain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/virt/acrn')
0 files changed, 0 insertions, 0 deletions