Skip to content
Commit 24413927 authored by Benjamin Gilbert's avatar Benjamin Gilbert
Browse files

Add _openslide_fread_exact()



Many _openslide_fread() callers want to fail unless the specified number
of bytes is read.  Add a helper for this.

Stop detecting TOCTTOU file size increases in _openslide_read_key_file().
They're harmless to us, and input files are expected to be read-only.

Signed-off-by: default avatarBenjamin Gilbert <bgilbert@cs.cmu.edu>
parent 804fd2ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment