mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-25 02:55:33 +00:00
528601d25a
- Use ftruncate64 instead of ftruncate to workaround seccomp - Cast uint32_t to off64_t before making it negative Note: Using ftruncate with a modern NDK libc should actually be fine as the syscall wrapper in bionic will use ftruncate64 internally. However, since we are using the libc.a from r10e built for Gingerbread, seccomp wasn't a thing back then, and also the ftruncate64 symbol is missing; we have to create our own wrapper and call it instead on 32-bit ABIs. Props to @jnotuo for discovering the overflow bug and seccomp issue Fix #3703, close #4915 |
||
---|---|---|
.. | ||
include | ||
Android.mk | ||
files.cpp | ||
files.hpp | ||
logging.cpp | ||
logging.hpp | ||
misc.cpp | ||
misc.hpp | ||
missing.cpp | ||
missing.hpp | ||
new.cpp | ||
selinux.cpp | ||
stream.cpp | ||
xwrap.cpp | ||
xwrap.hpp |