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

Issue 2395493002: Fix buffer underflow bug in tab save state. (Closed)

Created:
4 years, 2 months ago by Peter Wen
Modified:
4 years, 2 months ago
Reviewers:
andrhung, gone
CC:
chromium-reviews, David Trainor- moved to gerrit, avayvod+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix buffer underflow bug in tab save state. For Android JellyBean and older, there was a bug in MappedByteBufferAdapter that caused ByteBuffer#rewind() to not be propagated to the underlying buffer, causing buffer underflow when the same buffer was read completely again to save the state. Fix is to manually read the buffer rather than rely on rewind/remaining. BUG=635744 Committed: https://crrev.com/cf9ab49008ec04279f157b4fa68f3ec814cc59dd Cr-Commit-Position: refs/heads/master@{#422910}

Patch Set 1 #

Patch Set 2 : Test Patch. #

Patch Set 3 : Revert testing patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/TabState.java View 2 2 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
Peter Wen
Please take a look at this fix.
4 years, 2 months ago (2016-10-04 15:13:39 UTC) #3
andrhung
On 2016/10/04 15:13:39, Peter Wen wrote: > Please take a look at this fix. lgtm
4 years, 2 months ago (2016-10-04 16:56:13 UTC) #7
Peter Wen
+dfalcantara for OWNERS.
4 years, 2 months ago (2016-10-04 19:21:18 UTC) #14
gone
lgtm
4 years, 2 months ago (2016-10-04 20:01:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2395493002/40001
4 years, 2 months ago (2016-10-04 20:23:44 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-04 20:30:08 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 20:34:12 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cf9ab49008ec04279f157b4fa68f3ec814cc59dd
Cr-Commit-Position: refs/heads/master@{#422910}

Powered by Google App Engine
This is Rietveld 408576698