Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2013 11:33:58 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        fs@freebsd.org
Subject:   cleaning files beyond EOF
Message-ID:  <20130217113031.N9271@besplex.bde.org>

next in thread | raw e-mail | index | archive | help
I have a (possibly damaged) ffs data block with nonzero data beyond
EOF.  Is anything responsible for clearing this data when the file
is mmapped()?

At least old versions of gcc mmap() the file and have a bug checking
for EOF.  They read the garbage beyond the end and get confused.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130217113031.N9271>