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

822931
commit 3b15963316b59cd1af3468a43535d90343916ffb
822931
Author: Dimitri van Heesch <doxygen@gmail.com>
822931
Date:   Mon Jan 18 19:59:16 2021 +0100
822931
822931
    issue #8343: doxygen-1.9.1 crashes when parsing config file
822931
822931
diff --git a/src/configimpl.l b/src/configimpl.l
822931
index 7f73ec01..56a2e108 100644
822931
--- a/src/configimpl.l
822931
+++ b/src/configimpl.l
822931
@@ -1210,7 +1210,7 @@ static void substEnvVarsInStrList(StringVector &sl)
822931
               c=result.at(i);
822931
               if (c=='"') // end quote
822931
               {
822931
-                results.push_back(result.mid(p,i-p).data());
822931
+                results.push_back(result.mid(p,i-p).str());
822931
                 p=i+1;
822931
                 break;
822931
               }
822931
@@ -1222,7 +1222,7 @@ static void substEnvVarsInStrList(StringVector &sl)
822931
           }
822931
           else if (c==' ' || c=='\t') // separator
822931
           {
822931
-            if (i>p) results.push_back(result.mid(p,i-p).data());
822931
+            if (i>p) results.push_back(result.mid(p,i-p).str());
822931
             p=i+1;
822931
           }
822931
         }
822931
@@ -1234,7 +1234,7 @@ static void substEnvVarsInStrList(StringVector &sl)
822931
     }
822931
     else // just goto the next element in the list
822931
     {
822931
-      if (!result.isEmpty()) results.push_back(result.data());
822931
+      if (!result.isEmpty()) results.push_back(result.str());
822931
     }
822931
   }
822931
   sl = results;
822931
@@ -1409,7 +1409,7 @@ static void cleanUpPaths(StringVector &str)
822931
       QFileInfo fi(path.c_str());
822931
       if (fi.exists() && fi.isDir())
822931
       {
822931
-        path = fi.absFilePath().utf8().data();
822931
+        path = fi.absFilePath().utf8().str();
822931
         if (path[path.size()-1]!='/') path+='/';
822931
       }
822931
     }
822931
@@ -1545,7 +1545,7 @@ void Config::checkAndCorrect()
822931
     QString p = QDir::currentDirPath();
822931
     if (p.at(p.length()-1)!='/')
822931
         p.append('/');
822931
-    stripFromPath.push_back(p.utf8().data());
822931
+    stripFromPath.push_back(p.utf8().str());
822931
   }
822931
   else
822931
   {
822931
@@ -1882,7 +1882,7 @@ void Config::checkAndCorrect()
822931
   if (inputSources.empty())
822931
   {
822931
     // use current dir as the default
822931
-    inputSources.push_back(QDir::currentDirPath().utf8().data());
822931
+    inputSources.push_back(QDir::currentDirPath().utf8().str());
822931
   }
822931
   else
822931
   {