portableproplib/prop_object: handle possible NULL pointer deref (CID #62722).

This commit is contained in:
Juan RP 2015-07-26 08:10:26 +02:00
parent a8d2b1d742
commit 0b7093e108

View File

@ -600,7 +600,7 @@ _prop_object_internalize_by_tag(struct _prop_object_internalize_context *ctx)
match_start:
for (poi = _prop_object_internalizer_table;
poi->poi_tag != NULL; poi++) {
poi != NULL && poi->poi_tag != NULL; poi++) {
if (_prop_object_internalize_match(ctx->poic_tagname,
ctx->poic_tagname_len,
poi->poi_tag,