You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Limited ASCII property lists to 512 nested objects to prevent stack overflows from
excessively nested input
Fixed
Writing to a File given as a bare file name (no parent directory) threw a NullPointerException in the XML, ASCII and binary writers.
NSSet(NSObject...) stored a null argument as a raw Java null instead of NSNull, so containsObject(null) returned false, addObject(null) added a second entry and toJavaObject() threw a NullPointerException. Both varargs constructors now behave like addObject.
The ASCII parser now detects a UTF-16 or UTF-32 byte order mark in a text file that consists of
nothing but the BOM, and reports that the property list is empty instead of failing with an
unexpected-character error caused by decoding the BOM with the wrong charset.
Changed
Switch from using bundled iharder Base64 implementation to java.util.Base64 which is
significantly more performant. ⚠️ This breaks compatibility of dd-plist with Android versions earlier than Oreo (8.0).
XML and ASCII writers escape strings directly into the output buffer and skip escaping
entirely for plain strings, roughly halving the time to serialize string-heavy property lists.
NSString.toXML no longer re-encodes the string through UTF-8 on every call. A string containing
an unpaired surrogate is now written without that character, like other characters that are
invalid in XML, instead of throwing a RuntimeException.
NSDictionary keys are now filtered for characters that are invalid in XML, like string values
already were, so a dictionary with such keys produces a parseable XML property list.