diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-07 21:00:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-07 21:00:07 (GMT) |
commit | b13890351ccd7a5700cb3f2f87690a989a98fe53 (patch) | |
tree | a96b2c0ffea39c5ba3acf50ebc798a55c5685f9f /src | |
parent | 0148214e54f3bb0e15a960489149aaeba7d36443 (diff) | |
parent | c26c5fc4fb852098c7188e7762778c87a50771cb (diff) | |
download | Doxygen-b13890351ccd7a5700cb3f2f87690a989a98fe53.zip Doxygen-b13890351ccd7a5700cb3f2f87690a989a98fe53.tar.gz Doxygen-b13890351ccd7a5700cb3f2f87690a989a98fe53.tar.bz2 |
Merge pull request #6751 from albert-github/feature/issue_6749
issue #6749 doxygen 1.8.15 segfault
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index f9c2492..9a0e513 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -5444,6 +5444,7 @@ QCString escapeCharsInString(const char *name,bool allowDots,bool allowUnderscor static bool allowUnicodeNames = Config_getBool(ALLOW_UNICODE_NAMES); static GrowBuf growBuf; growBuf.clear(); + if (name==0) return ""; char c; const char *p=name; while ((c=*p++)!=0) @@ -6962,6 +6963,7 @@ void filterLatexString(FTextStream &t,const char *str, QCString latexEscapeLabelName(const char *s) { + if (s==0) return ""; QGString result; QCString tmp(qstrlen(s)+1); FTextStream t(&result); @@ -6999,6 +7001,7 @@ QCString latexEscapeLabelName(const char *s) QCString latexEscapeIndexChars(const char *s) { + if (s==0) return ""; QGString result; QCString tmp(qstrlen(s)+1); FTextStream t(&result); @@ -7037,6 +7040,7 @@ QCString latexEscapeIndexChars(const char *s) QCString latexEscapePDFString(const char *s) { + if (s==0) return ""; QGString result; FTextStream t(&result); const char *p=s; @@ -7061,6 +7065,7 @@ QCString latexEscapePDFString(const char *s) QCString latexFilterURL(const char *s) { + if (s==0) return ""; QGString result; FTextStream t(&result); const char *p=s; |