Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Issue 891703004: Seeing crashes likely from negative touch indexes, check for them (Closed)

Created:
5 years, 10 months ago by achaulk
Modified:
5 years, 10 months ago
Reviewers:
spang
CC:
chromium-reviews, kalyank, tdresser+watch_chromium.org, jdduke+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Seeing crashes likely from negative touch indexes, check for them BUG=452602 Committed: https://crrev.com/7f07ac7281819acd6eab53e28a2d45e425e2fd39 Cr-Commit-Position: refs/heads/master@{#314876}

Patch Set 1 #

Total comments: 1

Patch Set 2 : switch to vector #

Total comments: 5

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : fix signed errors #

Patch Set 6 : make tests initialize events vector #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -34 lines) Patch
M ui/events/ozone/evdev/touch_event_converter_evdev.h View 1 3 chunks +4 lines, -9 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.cc View 1 2 3 4 5 6 8 chunks +26 lines, -25 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
achaulk
5 years, 10 months ago (2015-01-30 18:12:10 UTC) #2
spang
I don't think an negative index is possible - there's a similar range check in ...
5 years, 10 months ago (2015-02-02 19:21:53 UTC) #3
spang
https://codereview.chromium.org/891703004/diff/1/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/891703004/diff/1/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode174 ui/events/ozone/evdev/touch_event_converter_evdev.cc:174: input.code != ABS_MT_SLOT) { Can't we keep the range ...
5 years, 10 months ago (2015-02-02 19:22:01 UTC) #4
achaulk
On 2015/02/02 19:21:53, spang wrote: > I don't think an negative index is possible - ...
5 years, 10 months ago (2015-02-02 19:27:30 UTC) #5
spang
On 2015/02/02 19:27:30, achaulk wrote: > On 2015/02/02 19:21:53, spang wrote: > > I don't ...
5 years, 10 months ago (2015-02-02 19:30:07 UTC) #6
achaulk
Changed implementation to a vector
5 years, 10 months ago (2015-02-02 22:00:30 UTC) #7
spang
https://codereview.chromium.org/891703004/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/891703004/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode116 ui/events/ozone/evdev/touch_event_converter_evdev.cc:116: I think you should create events_ here with size ...
5 years, 10 months ago (2015-02-02 22:09:42 UTC) #8
achaulk
https://codereview.chromium.org/891703004/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/891703004/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode116 ui/events/ozone/evdev/touch_event_converter_evdev.cc:116: On 2015/02/02 22:09:42, spang wrote: > I think you ...
5 years, 10 months ago (2015-02-03 16:51:49 UTC) #9
spang
just one more thing https://codereview.chromium.org/891703004/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/891703004/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode253 ui/events/ozone/evdev/touch_event_converter_evdev.cc:253: events_[current_slot_++].type_ = ET_TOUCH_PRESSED; if current_slot_ ...
5 years, 10 months ago (2015-02-03 17:05:23 UTC) #10
achaulk
https://codereview.chromium.org/891703004/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/891703004/diff/40001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode253 ui/events/ozone/evdev/touch_event_converter_evdev.cc:253: events_[current_slot_++].type_ = ET_TOUCH_PRESSED; On 2015/02/03 17:05:23, spang wrote: > ...
5 years, 10 months ago (2015-02-04 16:40:34 UTC) #11
spang
lgtm
5 years, 10 months ago (2015-02-04 18:07:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891703004/120001
5 years, 10 months ago (2015-02-05 20:48:37 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-05 21:14:00 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 21:15:18 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7f07ac7281819acd6eab53e28a2d45e425e2fd39
Cr-Commit-Position: refs/heads/master@{#314876}

Powered by Google App Engine
This is Rietveld 408576698