svn commit: r345967 - head/contrib/libxo/libxo
Phil Shafer
phil at FreeBSD.org
Tue Sep 3 14:06:45 UTC 2019
Author: phil
Date: Fri Apr 5 19:42:54 2019
New Revision: 345967
URL: https://svnweb.freebsd.org/changeset/base/345967
Log:
Emergency fix for NULL deref in xo_xml_leader_len
Modified:
head/contrib/libxo/libxo/libxo.c
Modified: head/contrib/libxo/libxo/libxo.c
==============================================================================
--- head/contrib/libxo/libxo/libxo.c Fri Apr 5 19:32:26 2019 (r345966)
+++ head/contrib/libxo/libxo/libxo.c Fri Apr 5 19:42:54 2019 (r345967)
@@ -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);
More information about the svn-src-all
mailing list