mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 18:38:46 +00:00
![canyie](/assets/img/avatar_default.png)
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