Bug 110488

Summary: Work around a MSVC 2012 Update 1 bug causing a crash on x86
Product: WebKit Reporter: Jocelyn Turcotte <jturcotte>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, hausmann, jturcotte, roger_fong
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Windows XP   
Attachments:
Description Flags
Patch
andersca: review-
Patch andersca: review+

Description Jocelyn Turcotte 2013-02-21 09:58:28 PST
Work around a MSVC 2012 Update 1 bug causing a crash on x86
Comment 1 Jocelyn Turcotte 2013-02-21 10:00:26 PST
Created attachment 189548 [details]
Patch
Comment 2 Anders Carlsson 2013-02-22 11:02:57 PST
Comment on attachment 189548 [details]
Patch

This absolutely needs a comment. Also, I think it should be surrounded in an #ifdef so that we can remove it eventually.
Comment 3 Jocelyn Turcotte 2013-02-25 08:11:00 PST
Created attachment 190063 [details]
Patch

Added the ifdef as well since the comment alone would lack context.
Comment 4 Anders Carlsson 2013-02-25 09:10:42 PST
Comment on attachment 190063 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=190063&action=review

> Source/WebCore/platform/text/TextEncodingRegistry.cpp:73
> +            if (c1 != c2)

I think you should put a return false inside the #ifdef.

> Source/WebCore/platform/text/TextEncodingRegistry.cpp:78
> +#endif

And then extend the ifdef below the return false; line.
Comment 5 Jocelyn Turcotte 2013-02-26 05:03:59 PST
Committed r144042: <http://trac.webkit.org/changeset/144042>