Now-fixed Apple code crashed iOS devices when users typed 'Taiwan'
A blog post on Tuesday illustrates the sometimes inadvertent ill effects of modifying or adding code to a major operating system for no other purpose than to placate a certain market's government. Apple did just that when it removed the Taiwan flag emoji from circulation in China.

Source: Patrick Wardle
Patrick Wardle, chief research officer of Digita Security, discussed the issue that caused certain iOS devices to crash in a lengthy and somewhat technical post to his personal blog, Objective-See.
As Wardle explains, iOS 11.3 and below contained a bug that for some iPhone and iPad users resulted in constant crashes when the word "Taiwan" was entered in both first- and third-party app text fields.
The remote flaw would also trigger a crash event when attempting to display the Taiwanese flag emoji on certain devices. The process was repeatable in iMessage, Facebook and WhatsApp.
Apple patched the bug in iOS 11.4.1, citing a bug report filed by Wardle earlier this year.
Certain aspects of the bug are unclear, but Wardle narrowed the negative effect down to a "null" pointer dereference. In particular, the problem presented itself when a
As noted by Emojipedia, iOS hides the Taiwanese flag on devices set to the China region. This process includes expunging the emoji from both the keyboard and rendered data like incoming text messages.
While the code worked for Chinese iPhones, it caused trouble for some iOS devices set to other regions, or more accurately an "unsupported region-less state."
The ordeal underscores the lengths to which Apple and other companies will go to appease China's government. China and Taiwan have a long and contentious relationship that dates back to well before the Chinese Civil War. Taiwan views itself as a sovereign state called the Republic of China, while the People's Republic of China (mainland China) considers Taiwan part of its territory and sensitive to issues regarding the island's identity.
China (the People's Republic of China) is a vital market for Apple. Although the company publicly touts a strong stance on against censorship and government snooping, it has played nice with the Chinese government's oft-bemoaned laws.
Last year, for example, Apple caught flak for pulling the NYT app from the Chinese App Store, a move that was followed by the removal of certain VPN apps in compliance with Chinese regulations.
Most recently, the company transferred Chinese iCloud data and cryptographic keys to local servers run by Guizhou-Cloud Big Data Industry Co. Ltd., a decision decried by privacy advocates. For its part, Apple says it advocated against iCloud being subject to China's cyber laws, but chalked up compliance as a cost of doing business in the country.

Source: Patrick Wardle
Patrick Wardle, chief research officer of Digita Security, discussed the issue that caused certain iOS devices to crash in a lengthy and somewhat technical post to his personal blog, Objective-See.
As Wardle explains, iOS 11.3 and below contained a bug that for some iPhone and iPad users resulted in constant crashes when the word "Taiwan" was entered in both first- and third-party app text fields.
The remote flaw would also trigger a crash event when attempting to display the Taiwanese flag emoji on certain devices. The process was repeatable in iMessage, Facebook and WhatsApp.
Apple patched the bug in iOS 11.4.1, citing a bug report filed by Wardle earlier this year.
Certain aspects of the bug are unclear, but Wardle narrowed the negative effect down to a "null" pointer dereference. In particular, the problem presented itself when a
removeEmoji
operation led to a system instruction that checked a device's region settings. An ensuing function crashed under certain conditions related to Chinese region settings. As noted by Emojipedia, iOS hides the Taiwanese flag on devices set to the China region. This process includes expunging the emoji from both the keyboard and rendered data like incoming text messages.
While the code worked for Chinese iPhones, it caused trouble for some iOS devices set to other regions, or more accurately an "unsupported region-less state."
The ordeal underscores the lengths to which Apple and other companies will go to appease China's government. China and Taiwan have a long and contentious relationship that dates back to well before the Chinese Civil War. Taiwan views itself as a sovereign state called the Republic of China, while the People's Republic of China (mainland China) considers Taiwan part of its territory and sensitive to issues regarding the island's identity.
China (the People's Republic of China) is a vital market for Apple. Although the company publicly touts a strong stance on against censorship and government snooping, it has played nice with the Chinese government's oft-bemoaned laws.
Last year, for example, Apple caught flak for pulling the NYT app from the Chinese App Store, a move that was followed by the removal of certain VPN apps in compliance with Chinese regulations.
Most recently, the company transferred Chinese iCloud data and cryptographic keys to local servers run by Guizhou-Cloud Big Data Industry Co. Ltd., a decision decried by privacy advocates. For its part, Apple says it advocated against iCloud being subject to China's cyber laws, but chalked up compliance as a cost of doing business in the country.
Comments
Also, AI, you've another typo: "...the company publicly touts a strong stance on against censorship..."
"On" or "against". Pick one.
Apple obeys the laws in all of the countries in which it operates. U.S. laws, Chinese laws, Korean laws, EU laws, and on and on. They operate exactly the same as Samsung, Microsoft, and other tech giants (these others do not get the same publicity, but look for the NYT app on an Android phone while in China). These companies may not like some of the laws, however they are compelled to abide by them.
There are some exceptions. Facebook does not operate there but this is because China maintains control over social media and has blocked them. FB has no say in the matter. Google is another case and is more complicated, but they have chosen not to operate (mostly) in China due to the laws there. There's more to their story, but that's the gist.
This all comes down to a simple mantra: if you wish to operate in any country you must obey the laws of that country or face the penalties.
Sincerely,
the US
P.S. Stop fucking stealing our IP.
In some part I blame the US universities because they are greedy for tuition dollars from foreign students especially from China and they teach them the advanced technology the US has and then they return to their country only to use it against us.