Skip to content

Commit

Permalink
Fix expected message length for touch events
Browse files Browse the repository at this point in the history
The expected length for a touch event control message was incorrect. As
a consequence, a BufferUnderflowException could occur.

Fixes #1245 <#1245>
  • Loading branch information
rom1v committed Mar 26, 2020
1 parent 566ba76 commit 89d1602
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class ControlMessageReader {

private static final int INJECT_KEYCODE_PAYLOAD_LENGTH = 9;
private static final int INJECT_TOUCH_EVENT_PAYLOAD_LENGTH = 21;
private static final int INJECT_TOUCH_EVENT_PAYLOAD_LENGTH = 27;
private static final int INJECT_SCROLL_EVENT_PAYLOAD_LENGTH = 20;
private static final int SET_SCREEN_POWER_MODE_PAYLOAD_LENGTH = 1;

Expand Down

0 comments on commit 89d1602

Please sign in to comment.