Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-doc/doxygen/files: doxygen-1.8.3.1-empty-line-sigsegv.patch
Date: Mon, 28 Jan 2013 08:15:05
Message-Id: 20130128081502.C27F320081@flycatcher.gentoo.org
1 xarthisius 13/01/28 08:15:02
2
3 Added: doxygen-1.8.3.1-empty-line-sigsegv.patch
4 Log:
5 Version bump including fixes for #454348 by Sebastian Pipping <sping@g.o>. Drop old
6
7 (Portage version: 2.2.0_alpha150/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)
8
9 Revision Changes Path
10 1.1 app-doc/doxygen/files/doxygen-1.8.3.1-empty-line-sigsegv.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/files/doxygen-1.8.3.1-empty-line-sigsegv.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/files/doxygen-1.8.3.1-empty-line-sigsegv.patch?rev=1.1&content-type=text/plain
14
15 Index: doxygen-1.8.3.1-empty-line-sigsegv.patch
16 ===================================================================
17 removeEmptyLines() segfaults on empty string
18
19 https://bugs.gentoo.org/show_bug.cgi?id=454348
20 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676423
21
22 Patch written by Thibaut Paumard <paumard@×××××××××××××××××.net>
23 --- a/src/htmlgen.cpp
24 +++ b/src/htmlgen.cpp
25 @@ -1022,6 +1022,11 @@
26 static QCString removeEmptyLines(const QCString &s)
27 {
28 BufStr out(s.length()+1);
29 + if (s.length()==0)
30 + {
31 + out.addChar('\0');
32 + return out.data();
33 + }
34 char *p=s.data();
35 if (p)
36 {