From 0b7093e108a5d5208cd2626702d178be7228a634 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 26 Jul 2015 08:10:26 +0200 Subject: [PATCH] portableproplib/prop_object: handle possible NULL pointer deref (CID #62722). --- lib/portableproplib/prop_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portableproplib/prop_object.c b/lib/portableproplib/prop_object.c index 8e9b02a1..0caa8313 100644 --- a/lib/portableproplib/prop_object.c +++ b/lib/portableproplib/prop_object.c @@ -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,