• LoveSy's avatar
    Fix UB of loading modules · e184eb4a
    LoveSy authored
    - The lambda here infers its return type as `std::string`,
      and since `info` is `const`, the labmda copies `info.name`
      and returns a `std::string&&`. After captured by the
      `std::string_view`, the `std::string&&` return value
      deconstructs and makes `std::string_view` refers to a
      dangling pointer.
    e184eb4a
Name
Last commit
Last update
..
applet_stub.cpp Loading commit data...
applets.cpp Loading commit data...
bootstages.cpp Loading commit data...
core.hpp Loading commit data...
daemon.cpp Loading commit data...
db.cpp Loading commit data...
logging.cpp Loading commit data...
magisk.cpp Loading commit data...
module.cpp Loading commit data...
restorecon.cpp Loading commit data...
scripting.cpp Loading commit data...
socket.cpp Loading commit data...
thread.cpp Loading commit data...