proplib: check for EOF a bit early on the internalized plist.

This commit is contained in:
Juan RP 2015-05-28 09:34:03 +02:00
parent c4184e64b0
commit 2ba31e048a

View File

@ -707,6 +707,8 @@ _prop_object_internalize_context_alloc(const char *xml)
* know about / care about. * know about / care about.
*/ */
for (;;) { for (;;) {
if (_PROP_EOF(*xml))
goto bad;
while (_PROP_ISSPACE(*xml)) while (_PROP_ISSPACE(*xml))
xml++; xml++;
if (_PROP_EOF(*xml) || *xml != '<') if (_PROP_EOF(*xml) || *xml != '<')