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

Issue 10916281: Make ConvertJavaToUTF functions more robusts. (Closed)

Created:
8 years, 3 months ago by Jay Civelli
Modified:
8 years, 3 months ago
Reviewers:
bulach, Yaron
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Make ConvertJavaToUTF functions more robusts. The ConvertJavaToUTF functions can have undefined behavior when called with null strings. This CL makes it easier to catch such problems. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156965

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M base/android/jni_string.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jay Civelli
8 years, 3 months ago (2012-09-13 01:05:57 UTC) #1
Jay Civelli
8 years, 3 months ago (2012-09-13 01:06:13 UTC) #2
bulach
lgtm, but one suggestion: https://codereview.chromium.org/10916281/diff/1/base/android/jni_string.cc File base/android/jni_string.cc (right): https://codereview.chromium.org/10916281/diff/1/base/android/jni_string.cc#newcode52 base/android/jni_string.cc:52: NOTREACHED() << " ConvertJavaStringToUTF16 called ...
8 years, 3 months ago (2012-09-13 10:02:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/10916281/4002
8 years, 3 months ago (2012-09-14 22:45:59 UTC) #4
commit-bot: I haz the power
8 years, 3 months ago (2012-09-15 02:08:58 UTC) #5
Change committed as 156965

Powered by Google App Engine
This is Rietveld 408576698