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

Issue 500113002: Require length in sk_wchar_to_string. (Closed)

Created:
6 years, 3 months ago by bungeman-skia
Modified:
6 years, 3 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Require length in sk_wchar_to_string. This information is already available at all call sites and allows the call to WideCharToMultiByte to not overwrite the '\0' in the writable_str() which isn't really writable. BUG=skia:1989 Committed: https://skia.googlesource.com/skia/+/5e7b4f967b37cc303a20b87617446605f26f1867

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -45 lines) Patch
M src/ports/SkTypeface_win_dw.cpp View 3 chunks +22 lines, -25 lines 0 comments Download
M src/utils/win/SkDWrite.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/utils/win/SkDWrite.cpp View 2 chunks +13 lines, -18 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
bungeman-skia
Perhaps we should also document that in general SkString::writable_string() only gives write access to SkString::size() ...
6 years, 3 months ago (2014-08-25 15:37:28 UTC) #1
reed1
lgtm w/ documentation request https://codereview.chromium.org/500113002/diff/1/src/utils/win/SkDWrite.h File src/utils/win/SkDWrite.h (right): https://codereview.chromium.org/500113002/diff/1/src/utils/win/SkDWrite.h#newcode32 src/utils/win/SkDWrite.h:32: HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, ...
6 years, 3 months ago (2014-08-25 17:04:18 UTC) #2
bungeman-skia
https://codereview.chromium.org/500113002/diff/1/src/utils/win/SkDWrite.h File src/utils/win/SkDWrite.h (right): https://codereview.chromium.org/500113002/diff/1/src/utils/win/SkDWrite.h#newcode32 src/utils/win/SkDWrite.h:32: HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, SkString* skname); On 2014/08/25 ...
6 years, 3 months ago (2014-08-25 17:08:52 UTC) #3
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 3 months ago (2014-08-25 17:08:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bungeman@google.com/500113002/20001
6 years, 3 months ago (2014-08-25 17:09:26 UTC) #5
commit-bot: I haz the power
6 years, 3 months ago (2014-08-25 17:16:05 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (20001) as 5e7b4f967b37cc303a20b87617446605f26f1867

Powered by Google App Engine
This is Rietveld 408576698