• 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
SystemInformation.cxx 148 KB