You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While running simulator tests with UBSAN I get a warning with the stack trace at the end of this post.
This happens in the simulator tests issues/{980,571,806,922} and TapDance/basic.
On running in the debugger It looks like the cause is in getting an address from an empty event_queue_.
This data does end up going into user callback tapDanceAction, which seems to get bad information.
I "got rid of the warning" with the below, but don't know if that makes semantic sense.
At first glance, I thought using event.addr was probably the wrong choice if the queue was empty, but on closer inspection, I recognized that this initial reaction was incorrect, because the event in question is a TapDance key that toggled on, and the call to tapDanceAction() on line 132 could get the incorrect address and trigger a bug. The suggested fix looks correct to me.
Describe the bug
While running simulator tests with UBSAN I get a warning with the stack trace at the end of this post.
This happens in the simulator tests
issues/{980,571,806,922}
andTapDance/basic
.On running in the debugger It looks like the cause is in getting an address from an empty
event_queue_
.This data does end up going into user callback
tapDanceAction
, which seems to get bad information.I "got rid of the warning" with the below, but don't know if that makes semantic sense.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: