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

Issue 959113002: Allow offsets in blobs larger than 2GB on 32 bit Chromium builds. (Closed)

Created:
5 years, 9 months ago by mtomasz
Modified:
5 years, 9 months ago
Reviewers:
michaeln, jianli, dmurph
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow offsets in blobs larger than 2GB on 32 bit Chromium builds. The recent patch crrev.com/895933007 introduced a regression by using size_t for offsets, which on 32bit builds is sizeof(size_t) = 4 which was causing broken offset values due to assigning a uint64_t variable to such variables. This CL fixes that by simply converting the types to uint64_t. TEST=*FileSystemProvider*BigFile* on a 32 bit build Chromium build with chromeos=1. BUG=375297, 458122 Committed: https://crrev.com/f6629637feb3bbf186de75da8fe4028a5244389f Cr-Commit-Position: refs/heads/master@{#318808}

Patch Set 1 #

Patch Set 2 : Resumed a test. #

Patch Set 3 : Added a regression test. #

Patch Set 4 : Cleaned up. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -26 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/fileapi/blob_storage_context_unittest.cc View 1 2 3 13 chunks +55 lines, -18 lines 0 comments Download
M storage/browser/blob/blob_storage_context.h View 1 1 chunk +2 lines, -2 lines 2 comments Download
M storage/browser/blob/blob_storage_context.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
mtomasz
@jianli: PTAL. Thanks.
5 years, 9 months ago (2015-02-27 02:17:47 UTC) #2
mtomasz
On 2015/02/27 02:17:47, mtomasz wrote: > @jianli: PTAL. Thanks. @jianli: Ping. This is a beta ...
5 years, 9 months ago (2015-03-02 00:08:36 UTC) #3
jianli
It seems that r315702 introduced a lot of size_t usages and we do not fix ...
5 years, 9 months ago (2015-03-02 21:14:35 UTC) #4
mtomasz
https://codereview.chromium.org/959113002/diff/60001/storage/browser/blob/blob_storage_context.h File storage/browser/blob/blob_storage_context.h (right): https://codereview.chromium.org/959113002/diff/60001/storage/browser/blob/blob_storage_context.h#newcode139 storage/browser/blob/blob_storage_context.h:139: size_t memory_usage_; On 2015/03/02 21:14:35, jianli wrote: > Should ...
5 years, 9 months ago (2015-03-02 22:57:09 UTC) #5
mtomasz
On 2015/03/02 21:14:35, jianli wrote: > It seems that r315702 introduced a lot of size_t ...
5 years, 9 months ago (2015-03-02 22:57:54 UTC) #6
mtomasz
5 years, 9 months ago (2015-03-02 22:58:02 UTC) #7
michaeln
this one lgtm 2
5 years, 9 months ago (2015-03-02 23:04:37 UTC) #8
dmurph
LGTM This has the same fixes as the patch I just made. To address jianli, ...
5 years, 9 months ago (2015-03-02 23:05:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/959113002/60001
5 years, 9 months ago (2015-03-02 23:29:24 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-03 00:20:19 UTC) #13
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f6629637feb3bbf186de75da8fe4028a5244389f Cr-Commit-Position: refs/heads/master@{#318808}
5 years, 9 months ago (2015-03-03 00:20:59 UTC) #14
jianli
On 2015/03/02 22:57:54, mtomasz wrote: > On 2015/03/02 21:14:35, jianli wrote: > > It seems ...
5 years, 9 months ago (2015-03-03 00:57:15 UTC) #15
dmurph
On 2015/03/03 00:57:15, jianli wrote: > On 2015/03/02 22:57:54, mtomasz wrote: > > On 2015/03/02 ...
5 years, 9 months ago (2015-03-03 01:05:33 UTC) #16
jianli
Is it possible to have overflow for the addition of 2 size_t in this case? ...
5 years, 9 months ago (2015-03-03 01:12:39 UTC) #17
mtomasz
5 years, 9 months ago (2015-03-03 02:08:48 UTC) #18
Message was sent while issue was closed.
Sounds like a valid concern. Let's track this issue separately.
I created crbug.com/463345

Powered by Google App Engine
This is Rietveld 408576698