cleaning files beyond EOF

Bruce Evans brde at optusnet.com.au
Sun Feb 17 00:34:10 UTC 2013


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


More information about the freebsd-fs mailing list