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

Issue 1304833004: Document SkString::resize(int) as destructive. (Closed)

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

Description

Document SkString::resize(int) as destructive. It is easy to think in some cases that SkString::resize(int) is not destructive, since optimizations mean that most of the time the data is still there after a resize. However, in the general case, the original string's data is lost and the new SkString contains garbage. Committed: https://skia.googlesource.com/skia/+/b2885d59bccb1c5045e52135c5dd7a85a57694fa

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M include/core/SkString.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
bungeman-skia
This recently came up (see https://codereview.chromium.org/1317913005/#ps60001 ) and it seems non-trivial to change. Most users ...
5 years, 3 months ago (2015-08-31 15:33:04 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304833004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304833004/1
5 years, 3 months ago (2015-08-31 16:04:05 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-31 16:09:08 UTC) #6
reed1
lgtm
5 years, 3 months ago (2015-08-31 21:07:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304833004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304833004/1
5 years, 3 months ago (2015-08-31 21:36:13 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 21:36:52 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/b2885d59bccb1c5045e52135c5dd7a85a57694fa

Powered by Google App Engine
This is Rietveld 408576698