boostorg / property_tree

Boost.org property_tree module
http://boost.org/libs/property_tree
55 stars 92 forks source link

Xml nullkey #93

Open brchrisman opened 3 years ago

brchrisman commented 3 years ago

Got back to tracking down this type issue of char vs wchar_t. Patch doesn't cast unless a null key is found.

ashtum commented 10 months ago

@brchrisman, could you please provide some background on this? What issue is it designed to address?

brchrisman commented 10 months ago

@brchrisman, could you please provide some background on this? What issue is it designed to address?

A property-tree with nulls as keys serializes to broken XML (having null tag names like <>foo</>). This patch places a nonce in there that is placed in serialize and elided in unserialize.