forked from pool/doxygen
- add doxygen-empty-strings-segfault.patch to fix build of ldb
[https://github.com/doxygen/doxygen/pull/6751] OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=136
This commit is contained in:
parent
0ce4afae89
commit
71c7b8e3c4
45
doxygen-empty-strings-segfault.patch
Normal file
45
doxygen-empty-strings-segfault.patch
Normal file
@ -0,0 +1,45 @@
|
||||
diff --git a/src/util.cpp b/src/util.cpp
|
||||
index f9c2492fb..9a0e513b5 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;
|
||||
|
@ -3,6 +3,8 @@ Mon Jan 7 14:45:46 UTC 2019 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- add doxygen-latex-makeindex.patch to fix build of libssh and
|
||||
cmocka [https://github.com/doxygen/doxygen/issues/6725]
|
||||
- add doxygen-empty-strings-segfault.patch to fix build of ldb
|
||||
[https://github.com/doxygen/doxygen/pull/6751]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 31 08:45:19 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
@ -35,6 +35,8 @@ Patch3: vhdlparser-no-return.patch
|
||||
Patch4: doxygen-dot-one-thread.patch
|
||||
# https://github.com/doxygen/doxygen/issues/6725
|
||||
Patch5: doxygen-latex-makeindex.patch
|
||||
# https://github.com/doxygen/doxygen/issues/6749
|
||||
Patch6: doxygen-empty-strings-segfault.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
BuildRequires: flex
|
||||
@ -62,6 +64,7 @@ as well.
|
||||
%patch4 -p1
|
||||
%endif
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
|
Loading…
x
Reference in New Issue
Block a user