• 石松洲's avatar
    Guard su request IPC · 448384af
    石松洲 authored
    Previously `read_string()` calls `std::string.resize()` with a int read from remote process. When I/O error occurs, -1 will be used for resizing the string, `std::bad_alloc` is thrown and since magisk is compiled with `-fno-exceptions`, it will crash the whole daemon process.
    
    May fix topjohnwu#5681
    448384af
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...