mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +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 |
||
---|---|---|
.. | ||
bootimg.cpp | ||
bootimg.hpp | ||
compress.cpp | ||
compress.hpp | ||
cpio.cpp | ||
cpio.hpp | ||
dtb.cpp | ||
dtb.hpp | ||
format.cpp | ||
format.hpp | ||
hexpatch.cpp | ||
magiskboot.hpp | ||
main.cpp | ||
pattern.cpp | ||
ramdisk.cpp |