libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
527 stars 305 forks source link

plist_from_json() fails on JSON numbers containing e+ exponents #258

Open sctol opened 2 months ago

sctol commented 2 months ago

plist_from_json() fails when encountering JSON number tokens containing explicit positive exponents "e+" or "E+" followed by the exponent digits. It does work for "e-", "E-", "e", and "E". The current JSON standard (json.org) and RFC 8259 allow for JSON numbers to contain '+" in the exponent. jplist.c line 514 to 549.

For example:

{ "real":1.23456e4 } works

{ "real":1.23456e+4 } fails

nikias commented 1 month ago

See e3568d816efcae05d017900845009d1cc6258fca. Will be added in next release.2q