mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
![]() 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
(cherry picked from commit
|
||
---|---|---|
.. | ||
ef.c | ||
ef.h | ||
ef_aarch64.c | ||
ef_amd64.c | ||
ef_arm.c | ||
ef_i386.c | ||
ef_mips.c | ||
ef_obj.c | ||
ef_powerpc.c | ||
ef_riscv.c | ||
elf.c | ||
fileformat | ||
kldxref.8 | ||
kldxref.c | ||
Makefile | ||
Makefile.depend |