From 4fc3338e53a3caf8b1df1e93575a55f483eb76a0 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 4 Jun 2017 22:16:42 +0200 Subject: [PATCH] package/doxygen: add upstream patch fixing segfault Backport an upstream patch fixing a segfault in xmlgen [1]. [1] https://github.com/doxygen/doxygen/pull/555 Signed-off-by: Romain Naour Cc: Bartosz Golaszewski Signed-off-by: Thomas Petazzoni --- ...3-Regression-Segfault-building-the-b.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/doxygen/0001-Bug-776791-1.8.13-Regression-Segfault-building-the-b.patch diff --git a/package/doxygen/0001-Bug-776791-1.8.13-Regression-Segfault-building-the-b.patch b/package/doxygen/0001-Bug-776791-1.8.13-Regression-Segfault-building-the-b.patch new file mode 100644 index 0000000000..b64158ca6e --- /dev/null +++ b/package/doxygen/0001-Bug-776791-1.8.13-Regression-Segfault-building-the-b.patch @@ -0,0 +1,30 @@ +From 0f02761a158a5e9ddbd5801682482af8986dbc35 Mon Sep 17 00:00:00 2001 +From: albert-github +Date: Wed, 4 Jan 2017 12:24:55 +0100 +Subject: [PATCH] Bug 776791 - [1.8.13 Regression] Segfault building the + breathe docs + +Protected against NULL pointer of variable al + +[Romain: backport from upstream] +Signed-off-by: Romain Naour +--- + src/xmlgen.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp +index fe95c7a..70e198a 100644 +--- a/src/xmlgen.cpp ++++ b/src/xmlgen.cpp +@@ -620,7 +620,7 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De + if (md->isInline()) t << "yes"; else t << "no"; + t << "\""; + +- if (al->refQualifier!=RefQualifierNone) ++ if (al!=0 && al->refQualifier!=RefQualifierNone) + { + t << " refqual=\""; + if (al->refQualifier==RefQualifierLValue) t << "lvalue"; else t << "rvalue"; +-- +2.9.4 +