git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Speculative fix for null pointer dereference.
[WebKit-https.git]
/
Source
/
WebCore
/
platform
/
mac
/
Language.mm
diff --git
a/Source/WebCore/platform/mac/Language.mm
b/Source/WebCore/platform/mac/Language.mm
index
f751f21
..
3034370
100644
(file)
--- a/
Source/WebCore/platform/mac/Language.mm
+++ b/
Source/WebCore/platform/mac/Language.mm
@@
-113,6
+113,8
@@
static String httpStyleLanguageCode(NSString *language, NSString *country)
static bool isValidICUCountryCode(NSString* countryCode)
{
+ if (!countryCode)
+ return false;
const char* const* countries = uloc_getISOCountries();
const char* countryUTF8 = [countryCode UTF8String];
for (unsigned i = 0; countries[i]; ++i) {