summaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-01-29 17:45:01 +0100
committerGravatar Nikias Bassen2026-01-29 17:45:01 +0100
commitb7f09ccdddc75d82ccaed867eb60e6997a7cad40 (patch)
tree261c3184ac15aebc953d91bc6cb097b5419d320a /test/data
parentebf24567ea5e4f72bd5acbc22f085e9d0b208e05 (diff)
downloadlibplist-master.tar.gz
libplist-master.tar.bz2
xplist: Improve robustness of XML text parsing and value conversionHEADmaster
This change adds stricter validation for numeric and date nodes, including full-input consumption, overflow/range checks, and rejection of invalid floating-point values. Whitespace handling is clarified by explicitly trimming trailing XML whitespace for value nodes.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/1.plist6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/data/1.plist b/test/data/1.plist
index e6e275d..82a112b 100644
--- a/test/data/1.plist
+++ b/test/data/1.plist
@@ -23,11 +23,11 @@
<key>Another Boolean</key>
<true/>
<key>Some Int</key>
- <integer></integer>
+ <integer>0</integer>
<key>Some Real</key>
- <real></real>
+ <real>1e4</real>
<key>Some Date</key>
- <date></date>
+ <date>1970-01-01T00:00:00Z</date>
<key>Some Data</key>
<data>
</data>