• Marian Klymov's avatar
    SystemInformation: Avoid use of dangling pointers on Solaris · 61501133
    Marian Klymov authored
    `ParseValueFromKStat` was constructing local `std::string` instances in
    a loop and passing their `.c_str()` to `RunProcess` after destruction.
    Preserve the strings in a vector to avoid dangling pointers.
    
    While at it, simplify some logic by using standard algorithms.
    61501133
Name
Last commit
Last update
GitSetup Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.hooks-config Loading commit data...
Base64.c Loading commit data...
Base64.h.in Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.rst Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
CommandLineArguments.cxx Loading commit data...
CommandLineArguments.hxx.in Loading commit data...
Configure.h.in Loading commit data...
Configure.hxx.in Loading commit data...
ConsoleBuf.hxx.in Loading commit data...
Copyright.txt Loading commit data...
Directory.cxx Loading commit data...
Directory.hxx.in Loading commit data...
DynamicLoader.cxx Loading commit data...
DynamicLoader.hxx.in Loading commit data...
Encoding.h.in Loading commit data...
Encoding.hxx.in Loading commit data...
EncodingC.c Loading commit data...
EncodingCXX.cxx Loading commit data...
ExtraTest.cmake.in Loading commit data...
FStream.cxx Loading commit data...
FStream.hxx.in Loading commit data...
Glob.cxx Loading commit data...
Glob.hxx.in Loading commit data...
IOStream.cxx Loading commit data...
IOStream.hxx.in Loading commit data...
MD5.c Loading commit data...
MD5.h.in Loading commit data...
Process.h.in Loading commit data...
ProcessUNIX.c Loading commit data...
ProcessWin32.c Loading commit data...
README.rst Loading commit data...
RegularExpression.cxx Loading commit data...
RegularExpression.hxx.in Loading commit data...
SetupForDevelopment.sh Loading commit data...
SharedForward.h.in Loading commit data...
String.c Loading commit data...
String.h.in Loading commit data...
String.hxx.in Loading commit data...
System.c Loading commit data...
System.h.in Loading commit data...
SystemInformation.cxx Loading commit data...
SystemInformation.hxx.in Loading commit data...
SystemTools.cxx Loading commit data...
SystemTools.hxx.in Loading commit data...
Terminal.c Loading commit data...
Terminal.h.in Loading commit data...
clang-format.bash Loading commit data...
hash_fun.hxx.in Loading commit data...
hash_map.hxx.in Loading commit data...
hash_set.hxx.in Loading commit data...
hashtable.hxx.in Loading commit data...
kwsysHeaderDump.pl Loading commit data...
kwsysPlatformTests.cmake Loading commit data...
kwsysPlatformTestsC.c Loading commit data...
kwsysPlatformTestsCXX.cxx Loading commit data...
kwsysPrivate.h Loading commit data...
testCommandLineArguments.cxx Loading commit data...
testCommandLineArguments1.cxx Loading commit data...
testConfigure.cxx Loading commit data...
testConsoleBuf.cxx Loading commit data...
testConsoleBuf.hxx Loading commit data...
testConsoleBufChild.cxx Loading commit data...
testDirectory.cxx Loading commit data...
testDynamicLoader.cxx Loading commit data...
testDynload.c Loading commit data...
testEncode.c Loading commit data...
testEncoding.cxx Loading commit data...
testFStream.cxx Loading commit data...
testFail.c Loading commit data...
testHashSTL.cxx Loading commit data...
testProcess.c Loading commit data...
testSharedForward.c.in Loading commit data...
testSystemInformation.cxx Loading commit data...
testSystemTools.bin Loading commit data...
testSystemTools.cxx Loading commit data...
testSystemTools.h.in Loading commit data...
testTerminal.c Loading commit data...
update-gitsetup.bash Loading commit data...
update-third-party.bash Loading commit data...