Files
linux/drivers
Samuel Thibault b6c8dafc9d speakup: Fix 8bit characters from direct synth
When userland echoes 8bit characters to /dev/synth with e.g.

echo -e '\xe9' > /dev/synth

synth_write would get characters beyond 0x7f, and thus negative when
char is signed.  When given to synth_buffer_add which takes a u16, this
would sign-extend and produce a U+ffxy character rather than U+xy.
Users thus get garbled text instead of accents in their output.

Let's fix this by making sure that we read unsigned characters.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Fixes: 89fc2ae80b ("speakup: extend synth buffer to 16bit unicode characters")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240204155736.2oh4ot7tiaa2wpbh@begin
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-07 21:51:12 +00:00
..
2024-03-07 20:37:04 +00:00
2024-03-07 20:32:47 +00:00
2024-02-02 12:33:50 -05:00
2024-03-07 20:32:38 +00:00
2024-01-05 15:55:41 +05:30
2024-03-07 20:40:36 +00:00
2024-02-13 15:48:22 +00:00
2024-02-06 14:42:11 +00:00
2024-01-04 17:03:47 +01:00
2024-01-12 12:38:37 +01:00