kernel_samsung_a53x/drivers/accessibility/speakup
Dan Carpenter 40d56d08d6 speakup: Fix sizeof() vs ARRAY_SIZE() bug
commit 008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b upstream.

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>
2024-11-19 12:26:51 +01:00
..
buffers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
DefaultKeyAssignments Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devsynth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fakekey.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i18n.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i18n.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
keyhelp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kobjects.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c speakup: Fix sizeof() vs ARRAY_SIZE() bug 2024-11-19 12:26:51 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
selection.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serialio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serialio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_acnt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_acntpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_acntsa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_apollo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_audptr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_bns.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_decext.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_decpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_dectlk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_dtlk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_dtlk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_dummy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_keypc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_ltlk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_soft.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_spkout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakup_txprt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakupmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
speakupmap.map Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spk_priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spk_priv_keyinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spk_ttyio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spk_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
synth.c speakup: Fix 8bit characters from direct synth 2024-11-19 09:22:34 +01:00
thread.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
TODO Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
varhandlers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00