WSL2-Linux-Kernel/drivers/accessibility/speakup
Dan Carpenter 504178fb7d 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-06-16 13:39:11 +02:00
..
DefaultKeyAssignments
Kconfig speakup: only build serialio when ISA is enabled 2020-08-18 13:15:34 +02:00
Makefile speakup: only build serialio when ISA is enabled 2020-08-18 13:15:34 +02:00
TODO
buffers.c
devsynth.c
fakekey.c
i18n.c speakup: use C99 syntax for array initializers 2021-07-21 13:45:53 +02:00
i18n.h speakup: Separate out translations for bright colors names 2021-06-15 17:07:46 +02:00
keyhelp.c
kobjects.c
main.c speakup: Fix sizeof() vs ARRAY_SIZE() bug 2024-06-16 13:39:11 +02:00
selection.c speakup: Fix clearing selection in safe context 2020-11-09 18:14:20 +01:00
serialio.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
serialio.h
speakup.h speakup: Fix clearing selection in safe context 2020-11-09 18:14:20 +01:00
speakup_acnt.h
speakup_acntpc.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_acntsa.c
speakup_apollo.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_audptr.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_bns.c
speakup_decext.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_decpc.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_dectlk.c speakup-dectlk: Restore pitch setting 2022-02-16 12:56:37 +01:00
speakup_dtlk.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_dtlk.h
speakup_dummy.c speakup_dummy: log about characters received by the dummy driver 2020-11-09 18:15:32 +01:00
speakup_keypc.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_ltlk.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_soft.c speakup: replace sprintf() by scnprintf() 2021-07-21 13:46:03 +02:00
speakup_spkout.c speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
speakup_txprt.c
speakupmap.h
speakupmap.map
spk_priv.h speakup: add the missing synth parameter to all io functions 2021-01-27 13:12:04 +01:00
spk_priv_keyinfo.h
spk_ttyio.c tty: fix possible null-ptr-defer in spk_ttyio_release 2023-01-24 07:22:46 +01:00
spk_types.h speakup: Make dectlk flush timeout configurable 2021-02-04 17:05:48 +01:00
synth.c speakup: Fix 8bit characters from direct synth 2024-04-10 16:18:40 +02:00
thread.c
varhandlers.c speakup: Make dectlk flush timeout configurable 2021-02-04 17:05:48 +01:00