Buggy speakup on Ubuntu 12.04?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bohdan R. Rau" <ethanak at polip.com> writes:

> 1) if I press "go to" key, any next key causes immediately kernel panic

Hey Bohdan,
I think I found the source of the goto bug.
If you look at the handle_goto function from main.c of the Speakup
sources,  you'll see this declaration:

static u_char *goto_buf = "\0\0\0\0\0\0";

That just creates a pointer to a string constant.
Try to assign to *goto_buf, and boom, there is your panic.

Instead, we want:

static u_char goto_buf[] = "\0\0\0\0\0\0";

That should fix the issue with goto, but I haven't been able to test it yet.

-- Chris



[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux