Magisk/native
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
..
jni utils/file.c: NULL terminate all files read into memory 2018-02-11 18:50:42 +08:00
src/main Rename module core to native 2018-01-27 09:11:28 +08:00
.gitignore Rename module core to native 2018-01-27 09:11:28 +08:00
build.gradle Rename module core to native 2018-01-27 09:11:28 +08:00