staging/speakup: fix get_word non-space look-ahead
commit 9d32c0cde4e2d1343dfb88a67b2ec6397705b32b upstream. get_char was erroneously given the address of the pointer to the text instead of the address of the text, thus leading to random crashes when the user requests speaking a word while the current position is on a space character and say_word_ctl is not enabled. Reported-on: https://github.com/bytefire/speakup/issues/1Reported-by: NKirk Reiser <kirk@reisers.ca> Reported-by: NJanina Sajka <janina@rednote.net> Reported-by: NAlexandr Epaneshnikov <aarnaarn2@gmail.com> Reported-by: NGregory Nowak <greg@gregn.net> Reported-by: Ndeedra waters <deedra@the-brannons.com> Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org> Tested-by: NAlexandr Epaneshnikov <aarnaarn2@gmail.com> Tested-by: NGregory Nowak <greg@gregn.net> Tested-by: NMichael Taboada <michael@michaels.world> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200306003047.thijtmqrnayd3dmw@functionSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录