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

Issue 2926333002: Remove unnecessary attempts at memory cleaning (Closed)

Created:
3 years, 6 months ago by Ryan Sleevi
Modified:
3 years, 6 months ago
Reviewers:
asanka, jschuh
CC:
chromium-reviews, cbentzel+watch_chromium.org, bnc+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary attempts at memory cleaning On some platforms, and inconsistently, we'd attempt to zap buffers by writing all zeroes before freeing the memory. Besides our approach being possible to be optimized out, it's inconsistent with the threat models and the rest of the code. BUG=none Review-Url: https://codereview.chromium.org/2926333002 Cr-Commit-Position: refs/heads/master@{#478397} Committed: https://chromium.googlesource.com/chromium/src/+/809e133889f27f882d9f4ad284a1916bcdf01d2d

Patch Set 1 #

Patch Set 2 : Fix zeroization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -72 lines) Patch
M net/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M net/base/auth.h View 1 chunk +0 lines, -4 lines 0 comments Download
M net/base/auth.cc View 2 chunks +0 lines, -5 lines 0 comments Download
D net/base/zap.h View 1 chunk +0 lines, -30 lines 0 comments Download
D net/base/zap.cc View 1 chunk +0 lines, -25 lines 0 comments Download
M net/http/http_auth_handler_ntlm_portable.cc View 1 4 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Ryan Sleevi
Justin for review because I'm going to say he told me to do it if ...
3 years, 6 months ago (2017-06-08 18:44:46 UTC) #2
asanka
lgtm. This looks like it was meant to emulate SecureZeroMemory, of which one expected side-effect ...
3 years, 6 months ago (2017-06-08 20:30:02 UTC) #3
jschuh
I took some time to ponder it a bit (nice manufacturing of blame, btw 😜). ...
3 years, 6 months ago (2017-06-09 16:15:35 UTC) #4
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/2926333002/1
3 years, 6 months ago (2017-06-09 16:20:17 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/92837)
3 years, 6 months ago (2017-06-09 17:00:16 UTC) #8
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/2926333002/10001
3 years, 6 months ago (2017-06-09 20:24:22 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 20:31:39 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:10001) as
https://chromium.googlesource.com/chromium/src/+/809e133889f27f882d9f4ad284a1...

Powered by Google App Engine
This is Rietveld 408576698