• 石松洲's avatar
    Fix UB when remote process died · e8787b5c
    石松洲 authored
    If remote process died, `xreadlink` fails and leaves `buf` uninitialized. Then the daemon calls `str_ends`, creates a temp `std::string_view` with the uninitialized buffer and undefined behavior occurs.
    e8787b5c
entry.cpp 11.8 KB