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

by

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.


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.

Tag: China

Top Rated Comments

(View all)
Avatar
27 months ago

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.
Score: 9 Votes (Like | Disagree)
Avatar
27 months ago
It’s amazing how many things do work when you think about it. :confused:
Score: 8 Votes (Like | Disagree)
Avatar
27 months ago
Time cook (licking Chinese government's ass): "Oopsy..."
Score: 6 Votes (Like | Disagree)
Avatar
27 months ago
Very Orwellian. We won't even let you use the word Taiwan, it's a thoughtcrime.
Score: 5 Votes (Like | Disagree)
Avatar
27 months ago
Taiwan #1!
Score: 4 Votes (Like | Disagree)
Avatar
27 months ago

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.
Score: 3 Votes (Like | Disagree)

Top Stories

Apple Takes Legal Action Against Small Company With Pear Logo

Saturday August 8, 2020 11:09 am PDT by
Apple is taking legal action against the developers of the app "Prepear" due to its logo, according to iPhone in Canada. Prepear is an app that helps users discover recipes, plan meals, make lists, and arrange grocery deliveries. The app is a spinoff of "Super Healthy Kids," and the founders claim that they are facing litigation from Apple. Apple reportedly takes issue with Prepear's logo, ...

Apple Seeds iOS 14 and iPadOS 14 Public Beta 4 to Testers

Thursday August 6, 2020 10:05 am PDT by
Apple today seeded new public betas of upcoming iOS 14 and iPadOS 14 updates to its public beta testing group. Today's software releases, which Apple labels as fourth betas to keep them in line with developer betas, are actually the third betas that Apple has provided and they come two weeks after the prior beta releases. Public beta testers who have signed up for Apple's beta testing...

Supposed iPhone 12 Display Unit Leaks

Thursday August 6, 2020 8:13 am PDT by
An image supposedly of an iPhone 12 display unit has been shared online by leaker "Twitter user Mr. White". Compared to images of an iPhone 11 Pro display piece, this new unit has a reoriented display connector, reaching up from the bottom of the display, rather than from the left-hand side on iPhone 11 Pro. This may be due to the logic board moving to the other side of the device. A...

8 Third-Party Home Screen Widgets That You Can Try Out Now on iOS 14

Wednesday August 5, 2020 12:56 pm PDT by
One of the biggest new features of iOS 14 is Home Screen widgets, which provide information from apps at a glance. The widgets can be pinned to the Home Screen in various spots and sizes, allowing for many different layouts. When the iOS 14 beta was first released in June, widgets were limited to Apple's own apps like Calendar and Weather, but several third-party developers have begun to test ...

New 27-Inch iMac's Storage Affixed to Logic Board, 4TB and 8TB Configurations Have Expansion Connector

Friday August 7, 2020 7:46 am PDT by
Following a report from German blog iFun.de that claimed the new 27-inch iMac's flash storage is soldered to the logic board, MacRumors has obtained additional information in an internal document for Apple technicians. In the document, Apple says that the flash storage is indeed affixed to the logic board and cannot be removed. However, for the 4TB and 8TB configurations, Apple says that a...

2020 iMac Teardown Reveals Internal Changes and Similarities

Saturday August 8, 2020 12:44 pm PDT by
A teardown video, shared by OWC, reveals the internal changes in the new 2020 27-inch iMac. The 2020 27-inch iMac was announced earlier this week with 10th-generation Intel Core processors, AMD Radeon Pro 5000 series graphics, up to 128GB of RAM, up to 8TB of storage, a 1080p front-facing FaceTime camera, a True Tone display with a nano-texture glass option, higher fidelity speakers, and...

Kuo: iPhone 12 Camera Lens Supplier Experiencing Quality Issues, But May Not Affect Launch Schedule

Thursday August 6, 2020 9:30 pm PDT by
One of Apple's camera lens suppliers for the upcoming non-Pro iPhone 12 models is having quality issues, according to a new research note from analyst Ming-Chi Kuo seen by MacRumors. The issues are, however, unlikely to have an impact on Apple's shipping schedule, presuming that Apple's other main supplier can make up the difference. Kuo says that Genius Electronic Optical has discovered...

Google's $349 Pixel 4a vs. Apple's $399 iPhone SE

Wednesday August 5, 2020 1:45 pm PDT by
Google this week launched its newest smartphone, the $349 Pixel 4a, a low-cost device that's designed to compete with other affordable devices like Apple's iPhone SE. We picked up one of the new Pixel 4a smartphones and thought we'd check it out to see how it measures up to the iPhone SE, given that the two devices have such similar price points. Subscribe to the MacRumors YouTube channel ...

Sony WH-1000XM4 Noise-Canceling Headphones Now Available for $350

Friday August 7, 2020 2:01 am PDT by
Sony's flagship WH-1000MX3 noise-canceling headphones have been among the best on the market for some time, and this week Sony released its fourth-generation WH-1000XM4 headphones boasting some notable improvements on the previous model. The XM4s feature the same basic design as the XM3s, but are one gram lighter at 254 grams due to slightly larger ear pads and some subtle tweaks to the...

Apple Announces New 27-Inch iMac With 10th-Gen Processors, Up to 128GB RAM, 1080p Webcam, True Tone, and More

Tuesday August 4, 2020 8:07 am PDT by
Apple today announced a new 27-inch iMac with faster 10th-generation Intel Core processor options, next-generation AMD graphics, up to 128GB of RAM, a higher-resolution 1080p front-facing FaceTime camera, a True Tone display with a nano-texture glass option, a T2 chip, higher fidelity speakers, studio-quality microphones, and more. A breakdown of the new 27-inch iMac's features and specs:10th...