Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Bail out on a read error in read_first_line
read_in_full returns a signed -1 on error, which became SIZE_MAX once stored in the size_t length and then wrote a terminator far out of bounds.
Diffstat (limited to 'source/shared.c')
-rw-r--r--source/shared.c13
1 file changed, 11 insertions, 2 deletions