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

Issue 12387019: Fix null-termination bug in Stacktrace::ToCString. (Closed)

Created:
7 years, 9 months ago by Florian Schneider
Modified:
7 years, 9 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix null-termination bug in Stacktrace::ToCString. Under certain conditions Stacktrace::ToCString can return a not null-terminated string. This is the case when ToCStringInternal is invoked with a stacktrace of length 0. BUG=dart:8850 TEST=tests/language/stacktrace_test.dart Committed: https://code.google.com/p/dart/source/detail?r=19282

Patch Set 1 #

Patch Set 2 : adjusted dart2js status file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M runtime/vm/object.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +1 line, -0 lines 0 comments Download
A tests/language/stacktrace_test.dart View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
Hi Siva, This happens if Stacktrace::FullStacktrace() appends an empty catch-trace to the stack trace, but ...
7 years, 9 months ago (2013-02-28 17:24:19 UTC) #1
siva
LGTM. Thanks for taking care of this.
7 years, 9 months ago (2013-02-28 17:53:17 UTC) #2
Florian Schneider
7 years, 9 months ago (2013-03-01 09:03:52 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r19282 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698