load_file(): Treat fread() failures like other non-fatal file errors
authorFabian Keil <fk@fabiankeil.de>
Sat, 18 Oct 2014 11:26:31 +0000 (11:26 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 18 Oct 2014 11:26:31 +0000 (11:26 +0000)
commit412c74bc2669dab5b0b1f8c78a0f66cc6f9b680b
treef5e2bafebe2b4fd769ee32b3b7f1b10585286318
parent27fb49fcf62210f91a9d7b206947ad279511676a
load_file(): Treat fread() failures like other non-fatal file errors

... and check for underreads properly.

Previously Privoxy was supposedly serving the file partially
if it was edited in place, but actually would have served an
error message and leaked memory. Now it just serves the error
message (if it's run in a fantasy world were this actually
happens).

CID 66380, CID 66362, CID 66357.
cgisimple.c