tamiko      15/01/21 15:25:13

  Added:                doxygen-1.8.9.1-empty-line-sigsegv.patch
  Log:
  version bump, bug #536584
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
BD3A97A3)

Revision  Changes    Path
1.1                  
app-doc/doxygen/files/doxygen-1.8.9.1-empty-line-sigsegv.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/files/doxygen-1.8.9.1-empty-line-sigsegv.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/files/doxygen-1.8.9.1-empty-line-sigsegv.patch?rev=1.1&content-type=text/plain

Index: doxygen-1.8.9.1-empty-line-sigsegv.patch
===================================================================
removeEmptyLines() segfaults on empty string

https://bugs.gentoo.org/show_bug.cgi?id=454348
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676423

Patch written by Thibaut Paumard <[email protected]>
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1022,6 +1022,11 @@
 static QCString removeEmptyLines(const QCString &s)
 {
   BufStr out(s.length()+1);
+  if (s.length()==0)
+  {
+    out.addChar('\0');
+    return out.data();
+  }
   const char *p=s.data();
   if (p)
   {




Reply via email to