]> git.tuebingen.mpg.de Git - paraslash.git/commit
i9e: Fix invalid key handling.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 25 Jul 2022 22:08:43 +0000 (00:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 21 Aug 2022 15:14:06 +0000 (17:14 +0200)
commit4c1f0ea9b7b5174d86a99803c1563caf778a8ee2
tree02d32b1edd37b300e6658d62c93a2456a38abb1d
parenta707fa9f2906f932a7ae5ca516562fe6ff9f5bfa
i9e: Fix invalid key handling.

If an unmapped key is pressed repeatedly, we store the key sequence in
a 32 byte buffer until there is no more space left in the buffer. Then
we terminate the process with

para_play: interactive.c:304: i9e_post_monitor: Assertion `len < sizeof(i9ep->key_sequence) - 1' failed.

This is not a nice way to deal with invalid input, so be a bit more
graceful and discard the buffer when it is full or when there is no
further input available at the moment.
interactive.c