Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
63,489
30,727



Apple quietly fixed a bug in iOS 11 that caused some devices to crash when the word "Taiwan" was entered in a text field or the Taiwan emoji was used, according to a security researcher (via Axios).

Digita Security's Patrick Wardle outlined in a blog post how the glitch in iOS 11.3 caused instant crashes on a variety of native and third-party iPhone and iPad apps, including iMessages, Facebook, and WhatsApp.

taiwan-emoji-800x353.jpeg

Wardle explained that although some aspects of the bug remained unclear, his investigations found that a "null" code would prompt the crash when a "removeEmoji" operation led the system to check the device's language/region settings.

The glitch appears to be the unintended result of some lines of code that Apple added to iOS to hide the Taiwanese flag emoji on devices set to the China region. Apparently, the code worked for iOS devices set to China, but caused crashes on devices that had somehow ended up in an "unsupported region-less state." It's unclear, however, exactly how a device could end up in that state.

While Apple fixed the glitch in iOS 11.4.1 after Wardle reported it, the bug's occurrence highlights Apple's willingness to placate China when it comes to sensitive political matters. Taiwan and China have had a fractious relationship ever since the Chinese Civil War, with China long considering Taiwan to be under its sovereignty, despite Taiwan officially self-recognizing as an independent democracy wholly separate from mainland China.

Apple has made similar moves in the past to protect its important Chinese market. In July 2017, for example, Apple removed many VPN apps from the App Store in China, following regulations passed earlier in the year that require such apps to be authorized by the Chinese government.

In December 2016, the company was forced to remove both the English-language and Chinese-language versions of The New York Times app from the Chinese App Store, after being informed by the Chinese authorities that they were in violation of local regulations.

Another case of Apple censoring in China included the forced shutdown of iTunes Movies and the iBooks Store, following the release of controversial independent movie Ten Years, which won best picture prize at the Hong Kong Film Awards. The dystopian film imagines Hong Kong in 2025 with language police, mini Red Guards, radical protest and social alienation rife.

Note: Due to the political nature of the discussion regarding this topic, the discussion thread is located in our Politics, Religion, Social Issues forum. All forum members and site visitors are welcome to read and follow the thread, but posting is limited to forum members with at least 100 posts.

Article Link: Apple Fixed Bug in iOS 11 That Crashed Devices When Users Entered the Word 'Taiwan'
 

lec0rsaire

macrumors 68000
Feb 23, 2017
1,525
1,450
Blame Nixon for betraying Taiwan aka the ROC. What did we get supporting the PRC? The loss of our manufacturing base and non-stop IP theft. Now Taiwan, a democratic country, will be controlled by the PRC very soon.
 

kstotlani

macrumors 6502a
Oct 27, 2006
774
1,234
I tried reading the article a few times but not clear about a couple of things.

1. Did some apple developer introduce this on purpose?
2. Was apple aware of this and didn’t fix it till someone reported it publicly?
 

Kognito

macrumors regular
Jul 27, 2011
145
258
I tried reading the article a few times but not clear about a couple of things.

1. Did some apple developer introduce this on purpose?
2. Was apple aware of this and didn’t fix it till someone reported it publicly?

The article isn't clear, I assume because it was written by someone who doesn't quite understand the technical background of this issue.

1. No, it's a bug that causes the crash, but the bug wasn't introduced on purpose. What is interesting is that it prompted investigation into why this would cause a crash - baring in mind that most of the world's iPhone users have been using the Taiwanese flag emoji without issue. The investigation revealed that Apple had introduced code to remove the emoji that would run only if your region was set to China - but obviously hadn't tested it properly, hence the crash. The intended effect was to just silently remove the Taiwan Emoji flag from the system.

2. No, I doubt they were aware of this. The fact that it only applied to Chinese users likely allowed this bug to slip by unnoticed by the folks in CA. Apple likely wouldn't want this publicised either, it looks bad on them from those outside China and those within China probably couldn't care any less.

Sad though, that Apple is so willing to placate the PRoC government when they act quite the opposite elsewhere in the world. I guess money talks.
 
Last edited:

VulchR

macrumors 68040
Jun 8, 2009
3,377
14,249
Scotland
Blame Nixon for betraying Taiwan aka the ROC. What did we get supporting the PRC? The loss of our manufacturing base and non-stop IP theft. Now Taiwan, a democratic country, will be controlled by the PRC very soon.

No it won't. I think too many Americans remember WWII and how expensive in human lives and misery island-hopping was. The whole reason for Obama's pivot to the Pacific was to deter the PRC. I don't think even Trump would allow the PRC to invade the ROC unchallenged.
 

timmyh

Contributing Editor
Mar 18, 2016
240
806
Edinburgh, UK
The article isn't clear, I assume because it was written by someone who doesn't understand the technical background of this issue.

1. No, it's a bug that causes the crash, but the bug wasn't introduced on purpose. What is interesting is that it prompted investigation into why this would cause a crash - baring in mind that most of the world's iPhone users have been using the Taiwanese flag emoji without issue. The investigation revealed that Apple had introduced code to remove the emoji that would run only if your region was set to China - but obviously hadn't tested it properly, hence the crash. The intended effect was to just silently remove the Taiwan Emoji flag from the system.

Sorry you misunderstood my wording here. To say that the glitch was of Apple’s own making, wasn’t to imply that they introduced it ‘on purpose’. Rather, the code that Apple added to silently remove the emoji turned out to be cause of the bug.

As mentioned, as soon as the researcher pointed out the issue, Apple corrected it, so that now it redacts the Taiwan emoji as originally intended.

I've changed the wording for clarification.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.