diff --git a/lib/portableproplib/prop_object.c b/lib/portableproplib/prop_object.c index 5e04e365..8e9b02a1 100644 --- a/lib/portableproplib/prop_object.c +++ b/lib/portableproplib/prop_object.c @@ -707,6 +707,8 @@ _prop_object_internalize_context_alloc(const char *xml) * know about / care about. */ for (;;) { + if (_PROP_EOF(*xml)) + goto bad; while (_PROP_ISSPACE(*xml)) xml++; if (_PROP_EOF(*xml) || *xml != '<')