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
..
2018-02-11 18:50:42 +08:00
2018-02-06 05:52:25 +08:00
2018-02-11 18:50:42 +08:00
2018-02-11 18:50:42 +08:00
2018-01-27 09:11:28 +08:00
2018-01-27 09:11:28 +08:00
2018-01-29 15:34:05 +08:00
2018-02-10 19:54:58 +08:00
2018-01-27 09:11:28 +08:00