Permalink
Browse files

apply fix from Stefan Kost to avoid a crash in xmllint, fixes 504284

* xmllint.c: apply fix from Stefan Kost to avoid a crash
  in xmllint, fixes 504284
Daniel

svn path=/trunk/; revision=3673
  • Loading branch information...
Daniel Veillard
Daniel Veillard committed Jan 11, 2008
1 parent aa2404e commit 5608b174b76eea342a85595f7cb4b23de6a7d4ad
Showing with 6 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1 xmllint.c
View
@@ -1,3 +1,8 @@
+Fri Jan 11 14:48:40 CST 2008 Daniel Veillard <daniel@veillard.com>
+
+ * xmllint.c: apply fix from Stefan Kost to avoid a crash
+ in xmllint, fixes 504284
+
Fri Jan 11 14:39:03 CST 2008 Daniel Veillard <daniel@veillard.com>
* xml2-config.in: apply patch from Fred Crozat to avoid
View
@@ -257,7 +257,7 @@ xmllintExternalEntityLoader(const char *URL, const char *ID,
const char *lastsegment = URL;
const char *iter = URL;
- if (nbpaths > 0) {
+ if ((nbpaths > 0) && (iter != NULL)) {
while (*iter != 0) {
if (*iter == '/')
lastsegment = iter + 1;

0 comments on commit 5608b17

Please sign in to comment.