Skip to content
Commit bdee6af0 authored by Tobias Stoeckmann's avatar Tobias Stoeckmann
Browse files

Avoid out of boundary read on empty/broken file.



If ereadfile encounters an empty file or the file could not be read, an
out ouf boundary read (and possible write) occurs. Always check the
return value of fread to be > 0 before processing the result buffer.

Signed-off-by: default avatarTobias Stoeckmann <tobias@stoeckmann.org>
parent a5e60401
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment