Magisk/native/jni/utils
Andrew Gunnerson 5ad4702a5b utils/file.c: NULL terminate all files read into memory
Some functions, like `patch_init_rc()`, treat buffers read into memory
as a string instead of a byte buffer. Since the buffers weren't
NULL-terminated, this resulted in out-of-bounds reads and caused crashes
in certain conditions.

THis commit updates fd_full_read() to always NULL-terminate the buffers
so that they can be treated as strings when working with text files.

Signed-off-by: Andrew Gunnerson <andrewgunnerson@gmail.com>
2018-02-11 18:50:42 +08:00
..
cpio.c Add DHTB header support 2018-01-29 22:16:02 +08:00
file.c utils/file.c: NULL terminate all files read into memory 2018-02-11 18:50:42 +08:00
img.c Support moving files across filesystems 2018-02-02 04:47:16 +08:00
list.c Rename module core to native 2018-01-27 09:11:28 +08:00
misc.c Obfuscate socket name to prevent detection 2018-02-11 03:59:54 +08:00
pattern.c Rename module core to native 2018-01-27 09:11:28 +08:00
vector.c Rename module core to native 2018-01-27 09:11:28 +08:00
xwrap.c Rename module core to native 2018-01-27 09:11:28 +08:00