Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b8fd3ef5 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Delete struct PointerData to fix ODR violation

This data structure is defined with the same name in
PreferStylusOverTouch_test and in UnwantedInteractionBlocker_test. This
creates a "one-definition-rule" violation.
This violation is not getting caught by the compiler today.

As a result, this causes the read to go out of bounds when the wrong
data structure is used. The issue can be reproduced by running the tests
on host.

To fix it, simply remove this struct and fallback to the Point struct
from libui.

Bug: 217165277 249591924 251318977
Test: atest --host --no-bazel-mode inputflinger_tests
Change-Id: I79e0647df63bbf69dd3074f1bd2931b298f4cd48
parent 5a1e9348
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment