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

Issue 2383293003: - fix some cases where we are using uninitialized memory (Closed)

Created:
4 years, 2 months ago by siva
Modified:
4 years, 2 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

- fix some cases where we are using uninitialized memory - use attribute 'no msan' on NativeEntry::ReturnValueIsError function as msan doesn't seem to track the return slot being set by a native function - vsnprintf seems to have issues with msan so unpoison the allocated memory buffer everytime vsnprintf is used to suppress the error. BUG= R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/42c58c5c2de9232efd05080631cca08813f206b7

Patch Set 1 #

Patch Set 2 : address self code review. #

Total comments: 2

Patch Set 3 : Fix lint issue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -10 lines) Patch
M runtime/bin/dartutils.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/platform/assert.h View 4 chunks +4 lines, -0 lines 0 comments Download
M runtime/platform/assert.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/platform/memory_sanitizer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/native_arguments.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/native_entry.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/native_symbol_linux.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/os_linux.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/scavenger.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
siva
4 years, 2 months ago (2016-10-01 01:02:15 UTC) #2
Florian Schneider
lgtm https://codereview.chromium.org/2383293003/diff/20001/runtime/vm/native_entry.cc File runtime/vm/native_entry.cc (right): https://codereview.chromium.org/2383293003/diff/20001/runtime/vm/native_entry.cc#newcode102 runtime/vm/native_entry.cc:102: NO_SANITIZE_MEMORY Here, it would be nice to figure ...
4 years, 2 months ago (2016-10-04 21:02:02 UTC) #3
siva
https://codereview.chromium.org/2383293003/diff/20001/runtime/vm/native_entry.cc File runtime/vm/native_entry.cc (right): https://codereview.chromium.org/2383293003/diff/20001/runtime/vm/native_entry.cc#newcode102 runtime/vm/native_entry.cc:102: NO_SANITIZE_MEMORY On 2016/10/04 21:02:02, Florian Schneider wrote: > Here, ...
4 years, 2 months ago (2016-10-05 20:38:07 UTC) #4
siva
4 years, 2 months ago (2016-10-05 23:54:22 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
42c58c5c2de9232efd05080631cca08813f206b7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698