Blame SOURCES/doxgen-1.9.1-crash-when-parsing-config-file-part2.patch

4fe1d2
diff -up doxygen/src/configimpl.l.orig doxygen/src/configimpl.l
4fe1d2
--- doxygen/src/configimpl.l.orig	2021-01-19 17:25:00.933789247 +0100
4fe1d2
+++ doxygen/src/configimpl.l	2021-01-19 17:26:09.704744240 +0100
4fe1d2
@@ -1175,8 +1175,7 @@ static void substEnvVarsInStrList(String
4fe1d2
   for (const auto &s : sl)
4fe1d2
   {
4fe1d2
     QCString result = s.c_str();
4fe1d2
-    // an argument with quotes will have an extra space at the end, so wasQuoted will be TRUE.
4fe1d2
-    bool wasQuoted = (result.find(' ')!=-1) || (result.find('\t')!=-1);
4fe1d2
+    bool wasQuoted = (result.find(' ')!=-1) || (result.find('\t')!=-1) || (result.find('"')!=-1);
4fe1d2
     // here we strip the quote again
4fe1d2
     substEnvVarsInString(result);
4fe1d2
 
4fe1d2
@@ -1229,7 +1228,7 @@ static void substEnvVarsInStrList(String
4fe1d2
       }
4fe1d2
       if (p!=l) // add the leftover as a string
4fe1d2
       {
4fe1d2
-        results.push_back(result.right(l-p).data());
4fe1d2
+        results.push_back(result.right(l-p).str());
4fe1d2
       }
4fe1d2
     }
4fe1d2
     else // just goto the next element in the list