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

Issue 23819029: String vector's comparison works wrong (Closed)

Created:
7 years, 3 months ago by Mikhail
Modified:
7 years, 3 months ago
Reviewers:
Chris Evans
CC:
blink-reviews, loislo+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, jeez, tkent, Nico
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

String vector's comparison works wrong The problem happened because SimpleClassVectorTraits was used as a vector trait for WTF::String class, hence 'memcmp' was used for string vector's comparison, which is apparently wrong. This CL corrects vector trait for WTF::String and also introduces a unit test to verify that the problem is not happening any more. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157360

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M Source/wtf/tests/WTFString.cpp View 1 chunk +13 lines, -0 lines 0 comments Download
M Source/wtf/text/WTFString.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Mikhail
Could you please have a look?
7 years, 3 months ago (2013-09-06 07:38:56 UTC) #1
Chris Evans
On 2013/09/06 07:38:56, mikhail.pozdnyakov wrote: > Could you please have a look? Interesting. String is ...
7 years, 3 months ago (2013-09-06 08:02:00 UTC) #2
Chris Evans
On 2013/09/06 08:02:00, Chris Evans wrote: > On 2013/09/06 07:38:56, mikhail.pozdnyakov wrote: > > Could ...
7 years, 3 months ago (2013-09-06 08:10:08 UTC) #3
Mikhail
On 2013/09/06 08:02:00, Chris Evans wrote: > On 2013/09/06 07:38:56, mikhail.pozdnyakov wrote: > > Could ...
7 years, 3 months ago (2013-09-06 08:13:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/23819029/1
7 years, 3 months ago (2013-09-06 08:24:50 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 09:42:14 UTC) #6
Message was sent while issue was closed.
Change committed as 157360

Powered by Google App Engine
This is Rietveld 408576698