Emergency fix for NULL deref in xo_xml_leader_len
This commit is contained in:
parent
4fbf8e1c2e
commit
c703b76e38
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345967
@ -600,7 +600,7 @@ xo_no_setlocale (void)
|
||||
static const char *
|
||||
xo_xml_leader_len (xo_handle_t *xop, const char *name, xo_ssize_t nlen)
|
||||
{
|
||||
if (isalpha(name[0]) || name[0] == '_')
|
||||
if (name == NULL || isalpha(name[0]) || name[0] == '_')
|
||||
return "";
|
||||
|
||||
xo_failure(xop, "invalid XML tag name: '%.*s'", nlen, name);
|
||||
|
Loading…
Reference in New Issue
Block a user