portableproplib/prop_object: handle possible NULL pointer deref (CID #62722).
This commit is contained in:
parent
a8d2b1d742
commit
0b7093e108
@ -600,7 +600,7 @@ _prop_object_internalize_by_tag(struct _prop_object_internalize_context *ctx)
|
|||||||
|
|
||||||
match_start:
|
match_start:
|
||||||
for (poi = _prop_object_internalizer_table;
|
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,
|
if (_prop_object_internalize_match(ctx->poic_tagname,
|
||||||
ctx->poic_tagname_len,
|
ctx->poic_tagname_len,
|
||||||
poi->poi_tag,
|
poi->poi_tag,
|
||||||
|
Loading…
Reference in New Issue
Block a user