Magisk/native/jni
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
..
core Tweak enum 2018-02-11 18:50:42 +08:00
external Change busybox config 2018-02-06 05:52:25 +08:00
include Tweak enum 2018-02-11 18:50:42 +08:00
magiskboot Support separate ramdisk images 2018-02-10 03:34:13 +08:00
magiskhide Tweak enum 2018-02-11 18:50:42 +08:00
magiskpolicy@2f4062a923 Rename module core to native 2018-01-27 09:11:28 +08:00
resetprop Rename module core to native 2018-01-27 09:11:28 +08:00
su@ed5dd827e9 Rename module core to native 2018-01-27 09:11:28 +08:00
utils utils/file.c: NULL terminate all files read into memory 2018-02-11 18:50:42 +08:00
Android.mk Use libmincrypt 2018-01-29 15:34:05 +08:00
Application.mk Better Windows support 2018-02-10 19:54:58 +08:00
b64xz.c Rename module core to native 2018-01-27 09:11:28 +08:00