Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1668)

Issue 6428054: In SkWriter32::writeString, initialize all memory reserved. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by Leon
Modified:
12 years, 1 month ago
Reviewers:
EricB, robertphillips, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

In SkWriter32::writeString, initialize all memory reserved. SkFlatData compares data which is sometimes created by writeString. Initialize all the memory in writeString so it does not compare uninitialized memory. See http://code.google.com/p/skia/issues/detail?id=721&thanks=721 Committed: https://code.google.com/p/skia/source/detail?r=4715

Patch Set 1 #

Patch Set 2 : Added a test. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M src/core/SkWriter32.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M tests/Writer32Test.cpp View 1 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 6
Leon
12 years, 1 month ago (2012-07-19 20:16:41 UTC) #1
reed1
seems good. can we write a unittest that exercises this? 1. write some bit pattern ...
12 years, 1 month ago (2012-07-20 15:18:23 UTC) #2
Leon
On 2012/07/20 15:18:23, reed1 wrote: > seems good. > > can we write a unittest ...
12 years, 1 month ago (2012-07-20 17:38:43 UTC) #3
reed1
https://codereview.appspot.com/6428054/diff/4001/tests/Writer32Test.cpp File tests/Writer32Test.cpp (right): https://codereview.appspot.com/6428054/diff/4001/tests/Writer32Test.cpp#newcode71 tests/Writer32Test.cpp:71: Do we want to explicitly write some non-zero pattern ...
12 years, 1 month ago (2012-07-20 17:53:28 UTC) #4
Leon
https://codereview.appspot.com/6428054/diff/4001/tests/Writer32Test.cpp File tests/Writer32Test.cpp (right): https://codereview.appspot.com/6428054/diff/4001/tests/Writer32Test.cpp#newcode71 tests/Writer32Test.cpp:71: On 2012/07/20 17:53:28, reed1 wrote: > Do we want ...
12 years, 1 month ago (2012-07-20 18:47:03 UTC) #5
reed1
12 years, 1 month ago (2012-07-20 20:22:43 UTC) #6
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b