When fseek is used to set the file pointer past the end of the file, fread should return EOF. See #12496.