diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2013-09-20 13:34:22 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2013-09-20 13:34:22 +0200 |
commit | 5985c230c8ac85fe2b2eb504b798377843bdc7cd (patch) | |
tree | 7e1d413b2d7da055b22aa75391c7bc11b01cb874 /apt-pkg/cachefile.cc | |
parent | 3e2d892340d42053d388bda3d50dfbee99299082 (diff) |
do not trust FileFd::Eof() in pkgTagFile::Fill()
The Eof check was added (by me of course) in
0aae6d14390193e25ab6d0fd49295bd7b131954f
as part of a fix up ~a month ago (at DebConf).
The idea was not that bad, but doesn't make that much sense either
as this bit is set by the FileFd based on Actual as well, so this is
basically doing the same check again – with the difference that the
HitEof bit can still linger from a previous Read we did at the end of
the file, but have seek'd away from it now.
Combined with the length of entries, entry order and other not that
easily controllable conditions you can be 'lucky' enough to hit this
problem in a way which even visible (truncating of other fields might
not be visible easily, like 'Tags' and others).
Closes: 723705
Thanks: Cyril Brulebois
Diffstat (limited to 'apt-pkg/cachefile.cc')
0 files changed, 0 insertions, 0 deletions