Hi,
On Mon, 5 May 2003, Ian Jackson wrote:
> ntfs_cluster_read and ntfs_cluster_write prevent you from accessing
> areas outside the volume, by checking the parameters against the
> volume size.
>
> However, they both have an off-by-one error which prevents accesses to
> the last cluster.
Well spotted. Thanks for the patch. I have applied it to both the stable
and development branches and have created new snapshots.
btw. Thanks for the io abstraction patch. I have been intending to do
something along those lines for ages but never considered it too high
priority. I always wanted to do it so we can have a version working under
DOS, Windows, Linux, etc at some point in the (distant) future... But I
am very busy at the moment and will need a while to review the patch and
mull over it a bit as to whether to take it as is or to change some
things... Don't know yet, haven't really looked at it properly.
Hopefully I will have time to look at it the comming weekend.
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
|