mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
785600d0fb
If a string is at or near the end of an input file and the amount of remaining data in the file is smaller than the maximum string size, the pread(2) system call would return a short read which is treated as an error. Instead, add a new helper function for reading a string which permits short reads so long as the data read from the file contains a terminated string. Reported by: jrtc27 Reviewed by: jrtc27 Sponsored by: University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D44419 |
||
---|---|---|
.. | ||
ef_aarch64.c | ||
ef_amd64.c | ||
ef_arm.c | ||
ef_i386.c | ||
ef_mips.c | ||
ef_obj.c | ||
ef_powerpc.c | ||
ef_riscv.c | ||
ef.c | ||
ef.h | ||
elf.c | ||
fileformat | ||
kldxref.8 | ||
kldxref.c | ||
Makefile | ||
Makefile.depend |