Skip to content
  • Marian Klymov's avatar
    SystemInformation: Avoid use of dangling pointers on Solaris · 61501133
    Marian Klymov authored and Brad King's avatar Brad King committed
    `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