diff options
author | Mason Wang <masonwang@google.com> | 2022-03-10 12:05:25 +0800 |
---|---|---|
committer | Mason Wang <masonwang@google.com> | 2022-03-10 20:47:25 +0800 |
commit | 809e12eb80883e10eef33c863110dc480fa881ef (patch) | |
tree | 20681f6971b4e5fbfddd3fa8fbf11d8a786c25f4 /ft3658/focaltech_core.h | |
parent | 6bddecc47d26529e7dfd52ca880c9df5e7bf8d87 (diff) | |
download | focaltech_touch-809e12eb80883e10eef33c863110dc480fa881ef.tar.gz |
touch/focaltech: fix to access out of boundary of heatmap_raw.
Bug: 223161131
Test: Checks that access indexes are all in the buffer size.
Test pass by twoshay -s and v4l-heatmap-viewer.apk
Signed-off-by: Mason Wang <masonwang@google.com>
Change-Id: I2d699ad2f4651acdce89fc6ac4732ac43096e788
Diffstat (limited to 'ft3658/focaltech_core.h')
-rw-r--r-- | ft3658/focaltech_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ft3658/focaltech_core.h b/ft3658/focaltech_core.h index 81a840a..9372c0a 100644 --- a/ft3658/focaltech_core.h +++ b/ft3658/focaltech_core.h @@ -244,6 +244,8 @@ struct fts_ts_data { ktime_t coords_timestamp; #if IS_ENABLED(CONFIG_TOUCHSCREEN_OFFLOAD) || \ IS_ENABLED(CONFIG_TOUCHSCREEN_HEATMAP) + u8 *heatmap_raw; + u8 *trans_raw; u16 *heatmap_buff; #endif #if IS_ENABLED(CONFIG_TOUCHSCREEN_OFFLOAD) |