linux-stable/drivers/accessibility/speakup
Justin Stitt 19e3e6cdfd accessibility: speakup: refactor deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1].

Let's refactor this function to just use synth_write().

Link: www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings[1]
Link: https://manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en.html [2]
Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Justin Stitt <justinstitt@google.com>
Suggested-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20230918-strncpy-drivers-accessibility-speakup-kobjects-c-v2-1-d5b1976c5dbf@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-05 13:34:05 +02:00
..
.gitignore speakup: Generate speakupmap.h automatically 2022-06-27 15:15:55 +02:00
DefaultKeyAssignments
Kconfig speakup: add HAS_IOPORT dependency for SPEAKUP_SERIALIO 2023-05-31 19:17:40 +01:00
Makefile speakup: Fix building as extmod 2022-11-23 19:55:03 +01:00
TODO
buffers.c
devsynth.c
fakekey.c accessiblity: speakup: cleanup comments 2022-04-20 19:24:00 +02:00
genmap.c speakup: Generate speakupmap.h automatically 2022-06-27 15:15:55 +02:00
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 accessibility: speakup: refactor deprecated strncpy 2023-10-05 13:34:05 +02:00
main.c accessibility: use C99 array init 2023-05-29 14:54:51 +01:00
makemapdata.c speakup: Fix building as extmod 2022-11-23 19:55:03 +01:00
selection.c speakup: Fix clearing selection in safe context 2020-11-09 18:14:20 +01:00
serialio.c accessiblity: speakup: cleanup comments 2022-04-20 19:24:00 +02:00
serialio.h serial: Consolidate BOTH_EMPTY use 2022-06-27 14:41:31 +02:00
speakup.h accessibility: speakup: phonetic spelling while arrowing letter by letter 2022-11-23 19:47:15 +01:00
speakup_acnt.h
speakup_acntpc.c Accessiblity: speakup_acntpc: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_acntsa.c Accessiblity: speakup_acntsa: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_apollo.c Accessiblity: speakup_apollo: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_audptr.c Accessiblity: speakup_audptr: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_bns.c Accessiblity: speakup_bns: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_decext.c Accessiblity: speakup_decext: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_decpc.c Accessiblity: speakup_decpc: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_dectlk.c Accessiblity: speakup_dectlk: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_dtlk.c Accessiblity: speakup_dtlk: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_dtlk.h
speakup_dummy.c Accessiblity: speakup_dummy: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_keypc.c Accessiblity: speakup_keypc: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_ltlk.c Accessiblity: speakup_ltlk: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_soft.c Accessiblity: speakup_soft: specifying the default driver parameters among the module params 2022-11-23 19:46:26 +01:00
speakup_spkout.c Accessiblity: speakup_spkout: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
speakup_txprt.c Accessiblity: speakup_txprt: specifying the default driver parameters among the module params 2022-11-23 19:46:27 +01:00
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: use u8 for flags 2023-08-11 21:12:45 +02:00
spk_types.h accessibility: speakup: phonetic spelling while arrowing letter by letter 2022-11-23 19:47:15 +01:00
synth.c speakup: Allow lower values for the flush parameter 2022-02-08 12:12:27 +01:00
thread.c
utils.h speakup: replace utils' u_char with unsigned char 2022-11-09 15:25:24 +01:00
varhandlers.c accessibility: speakup: phonetic spelling while arrowing letter by letter 2022-11-23 19:47:15 +01:00