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

Issue 10544054: Fix wierd string iteration problem in ParseDomainASCII under VS2010 debug builds (Closed)

Created:
8 years, 6 months ago by jaysoffian
Modified:
8 years, 6 months ago
Reviewers:
cbentzel, szym
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix wierd string iteration problem in ParseDomainASCII under VS2010 debug builds This commit fixes a crash under MSVS 2010 Debug builds, where a string iterator fails a compatibility check. Specifically its _Myproxy is NULL. What that is and why that is exactly I do not know at this point, but I'd guess it may be a VS2010 bug. Creating a new string copy rather than using the existing one seems to resolve the issue. BUG=131599 TEST=

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M net/dns/dns_config_service_win.cc View 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
jaysoffian
8 years, 6 months ago (2012-06-07 17:27:32 UTC) #1
szym
lgtm
8 years, 6 months ago (2012-06-07 17:31:02 UTC) #2
cbentzel
https://chromiumcodereview.appspot.com/10544054/diff/1/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): https://chromiumcodereview.appspot.com/10544054/diff/1/net/dns/dns_config_service_win.cc#newcode116 net/dns/dns_config_service_win.cc:116: #if defined(OS_WIN) && !defined(NDEBUG) Can this be fixed with ...
8 years, 6 months ago (2012-06-07 17:38:46 UTC) #3
szym
https://chromiumcodereview.appspot.com/10544054/diff/1/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): https://chromiumcodereview.appspot.com/10544054/diff/1/net/dns/dns_config_service_win.cc#newcode116 net/dns/dns_config_service_win.cc:116: #if defined(OS_WIN) && !defined(NDEBUG) On 2012/06/07 17:38:46, cbentzel wrote: ...
8 years, 6 months ago (2012-06-07 17:40:49 UTC) #4
jaysoffian
On 2012/06/07 17:40:49, szym wrote: > On 2012/06/07 17:38:46, cbentzel wrote: > > Can this ...
8 years, 6 months ago (2012-06-07 18:00:19 UTC) #5
szym
On 2012/06/07 18:00:19, jaysoffian wrote: > On 2012/06/07 17:40:49, szym wrote: > > On 2012/06/07 ...
8 years, 6 months ago (2012-06-07 18:02:57 UTC) #6
jaysoffian
On 2012/06/07 18:02:57, szym wrote: > Right, this has to be defined before <string> is ...
8 years, 6 months ago (2012-06-07 18:34:01 UTC) #7
jaysoffian
Er, actually it was: #include "net/dns/dns_config_service_win.h" #undef _HAS_ITERATOR_DEBUGGING #define _HAS_ITERATOR_DEBUGGING 0 #include <algorithm> #include <string> ...
8 years, 6 months ago (2012-06-07 18:37:50 UTC) #8
szym
I think in this case, the current solution makes sense. WDYT, Chris?
8 years, 6 months ago (2012-06-07 19:26:11 UTC) #9
szym
On 2012/06/07 19:26:11, szym wrote: > I think in this case, the current solution makes ...
8 years, 6 months ago (2012-06-07 20:19:28 UTC) #10
jaysoffian
8 years, 6 months ago (2012-06-07 23:56:53 UTC) #11
On 2012/06/07 20:19:28, szym wrote:
> jaysoffian: Could you check if:
https://chromiumcodereview.appspot.com/10545065/
> solves the issue?

Yup, it does. Ignore this change then.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698