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

Issue 14204002: Remove some uninitialized reads from simple cache metadata serializer. (Closed)

Created:
7 years, 8 months ago by pasko-google - do not use
Modified:
7 years, 8 months ago
Reviewers:
felipeg, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove some uninitialized reads from simple cache metadata serializer. Valgrind detects uninitialized reads very well, and that's great! It catches cases when we allocate garbage on stack, hash it, write to the file. If we ever had wanted to repeat the operation, the hash would have been most likely be different, which could be fine in prod, but bad for testing. More details in the bug. BUG=173393 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193936

Patch Set 1 #

Patch Set 2 : more memset goodness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -6 lines) Patch
M net/disk_cache/simple/simple_disk_format.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_disk_format.cc View 1 1 chunk +20 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
pasko-google - do not use
7 years, 8 months ago (2013-04-11 22:49:10 UTC) #1
gavinp
Consider guarding SimpleFileHeader. LGTM. We should file a bug to not write structs to disk.
7 years, 8 months ago (2013-04-12 10:18:08 UTC) #2
felipeg
On 2013/04/12 10:18:08, gavinp wrote: > Consider guarding SimpleFileHeader. > > LGTM. > > We ...
7 years, 8 months ago (2013-04-12 10:19:39 UTC) #3
pasko-google - do not use
On 2013/04/12 10:18:08, gavinp wrote: > Consider guarding SimpleFileHeader. uploaded some more
7 years, 8 months ago (2013-04-12 10:41:40 UTC) #4
gavinp
LGTM. Can you make the CL description a bit longer before CQ?
7 years, 8 months ago (2013-04-12 10:43:29 UTC) #5
pasko-google - do not use
On 2013/04/12 10:43:29, gavinp wrote: > LGTM. > > Can you make the CL description ...
7 years, 8 months ago (2013-04-12 10:54:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/14204002/7001
7 years, 8 months ago (2013-04-12 10:54:40 UTC) #7
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-12 11:01:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/14204002/7001
7 years, 8 months ago (2013-04-12 11:15:13 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-12 11:27:10 UTC) #10
pasko-google - do not use
Committed patchset #2 manually as r193936 (presubmit successful).
7 years, 8 months ago (2013-04-12 14:46:19 UTC) #11
pasko-google - do not use
7 years, 8 months ago (2013-04-12 14:46:47 UTC) #12
Message was sent while issue was closed.
On 2013/04/12 14:46:19, pasko wrote:
> Committed patchset #2 manually as r193936 (presubmit successful).

committed manually since it is blocking our testing

Powered by Google App Engine
This is Rietveld 408576698