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

iPhone 12 Pro in Graphite and iPhone 12 in Blue Shown Off in Unboxing Videos

Monday October 19, 2020 8:20 am PDT by
While the iPhone 12 Pro does not launch until Friday, we now have an early unboxing video of the device courtesy of Twitter account DuanRui, providing a closer look at the shiny new flat-edge design and sleek Graphite color option. Ben Geskin re-uploaded the unboxing video to YouTube, which we've embedded below: Geskin has also uploaded an unboxing video of the iPhone 12 in Blue: ...

Kuo: iPhone 12 Pro Demand Higher Than Expected

Sunday October 18, 2020 10:39 pm PDT by
TF International Securities analyst Ming-Chi Kuo released a research note this morning detailing what he's seen with the volume of iPhone 12 and iPhone 12 Pro pre-orders in the first weekend of sales. Kuo had previously indicated that Apple's estimated shipment allocations for the new iPhone models placed the iPhone 12 at the top with 40-45% of inventory allocation (up from 15-20%). However, ...

Apple's New MagSafe Charger and Cases Begin Arriving to Customers

Saturday October 17, 2020 10:10 am PDT by
Apple's new MagSafe charger and cases have begun arriving to some customers earlier than expected, and images of the accessories have started to surface on Twitter. The photos provide a first look at the products in real-world use. As of writing, some MagSafe cases are also available for pickup at select Apple Stores in countries like the United States, Canada, and Germany. Filip...

HomePod Mini Cable is Non-Detachable, Ends With USB-C Connector for Use With Included 20W Power Adapter

Friday October 16, 2020 12:45 pm PDT by
While not detailed in the tech specs, MacRumors can confirm that Apple's new HomePod mini features a non-detachable power cable that ends with a USB-C connector for use with the 20W power adapter included in the box. With the switch to USB-C, the HomePod mini could potentially be powered by a wider range of devices and peripherals, ranging from MacBooks to USB-C battery packs with enough...

Samsung Mocks Apple for Ditching Power Adapters With iPhone 12 Lineup

Thursday October 15, 2020 11:51 am PDT by
Samsung on its social channels is mocking Apple for removing the power adapter from the iPhone 12 lineup and other iPhone models, pointing out the fact that the Samsung Galaxy smartphones continue to ship with a power adapter. "Included with your Galaxy," reads a Samsung Facebook post that features a picture of a power adapter. Apple notably is no longer providing power adapters or...

New Google App Feature Lets You Hum a Song to Search for It

Saturday October 17, 2020 4:05 am PDT by
Google has added a new feature to its Search app that allows you to hum a song that's stuck in your head, and then use the company's machine learning algorithm to try and identify it. In the Google app or using the Google Search widget, tap the mic icon and say "what's this song?" or click the "Search a song" button. Then start humming the tune for 10-15 seconds. When you're done, the...

Brazilian Certifications Suggest iPhone 12 Mini Features 2,227mAh Battery and iPhone 12 Has 2,815mAh Battery

Friday October 16, 2020 1:08 pm PDT by
Apple's iPhone mini has the shortest battery life out of all the iPhones in the iPhone 12 lineup due to its small size, but Apple has not provided public information about the battery's capacity. A regulatory filing from Brazil, however, suggests the iPhone 12 mini has a battery capacity of 2,227mAh. The same regulatory information says the iPhone 12 features a 2,815mAh battery, which is...

iPhone 12 Pro Pre-Orders Already Selling Out With Delivery Times Pushing Into November

Friday October 16, 2020 6:35 am PDT by
Apple today opened pre-orders for the 6.1-inch models of the iPhone 12 and iPhone 12 Pro through its website and the Apple Store app, and estimated delivery times are already slipping into November for select configurations in the United States. Customers ordering a SIM-free/Pacific Blue/128GB version of the iPhone 12 Pro, for example, are already facing an estimated delivery window of...

Hands-On With Apple's MagSafe Charger for iPhone 12

Monday October 19, 2020 11:54 am PDT by
Alongside the new iPhone 12 models, Apple introduced a MagSafe charger that attaches to the back of the iPhones using magnets embedded both in the charger and in the iPhone. It allows for speedier charging and paves the way for a portless iPhone in the future. MagSafe chargers are shipping out and are in some Apple retail locations now, and we picked one up to check it out. Subscribe to the ...

Apple Offering Free AirPods With iPhone 11 Purchase in India as Part of Diwali Celebration

Friday October 16, 2020 12:35 pm PDT by
Apple today launched a new Diwali promotion in India that will see the company providing customers with a set of AirPods with the purchase of any iPhone 11 model. The new iPhone 12 models are not part of the promotion. Apple is offering the standard AirPods With Charging Case free with purchase, but customers can choose to upgrade to the AirPods with Wireless Charging Case or the AirPods Pro....