OSDN Git Service

Fixed a possible use-after-free bug in initialization code.
authorLoRd_MuldeR <mulder2@gmx.de>
Thu, 6 Aug 2015 23:57:28 +0000 (01:57 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Thu, 6 Aug 2015 23:57:28 +0000 (01:57 +0200)
src/Config.h
src/Thread_Initialization.cpp

index b7d7839..613a4f7 100644 (file)
@@ -35,7 +35,7 @@
 #define VER_LAMEXP_MINOR_LO                                    2
 #define VER_LAMEXP_TYPE                                                Beta
 #define VER_LAMEXP_PATCH                                       2
-#define VER_LAMEXP_BUILD                                       1773
+#define VER_LAMEXP_BUILD                                       1775
 #define VER_LAMEXP_CONFG                                       1700
 
 ///////////////////////////////////////////////////////////////////////////////
index 46d4d8c..2598b65 100644 (file)
@@ -411,7 +411,7 @@ double InitializationThread::doInit(const size_t threadCount)
                        
                if(cpuType & cpuSupport)
                {
-                       pool->start(new ExtractorTask(resource.data(), appDir, toolName, toolHash, version, versInfo));
+                       pool->start(new ExtractorTask(resource.take(), appDir, toolName, toolHash, version, versInfo));
                        continue;
                }
        }