Skip to content

Commit

Permalink
fixed #2480
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed May 31, 2023
1 parent 8f3088b commit 53387aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/xml_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static void xml_sax_parse_entity(GF_SAXParser *parser)
}
}
if (ent_name) gf_free(ent_name);
if (ent && !ent->value)
parser->sax_state = SAX_STATE_SYNTAX_ERROR;
xml_sax_store_text(parser, i);
}

Expand Down Expand Up @@ -968,7 +970,7 @@ static GF_Err xml_sax_parse(GF_SAXParser *parser, Bool force_parse)
static GF_Err xml_sax_append_string(GF_SAXParser *parser, char *string)
{
u32 size = parser->line_size;
u32 nl_size = (u32) strlen(string);
u32 nl_size = string ? (u32) strlen(string) : 0;

if (!nl_size) return GF_OK;

Expand Down

0 comments on commit 53387aa

Please sign in to comment.