proplib: check for EOF a bit early on the internalized plist.
This commit is contained in:
parent
c4184e64b0
commit
2ba31e048a
@ -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 != '<')
|
||||||
|
Loading…
Reference in New Issue
Block a user