SFV checker file name bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Fix Released
|
Medium
|
Unassigned |
Bug Description
SFV checker code contains a bug: the file name inside SFV file is searched by substring and no check for end of line is performed.
Example:
The folder with the following files:
the.fp.
the.fp.
SFV file contains:
the.fp.
Expected result:
No CRC32 record for "the.fp.
Actual result:
dcpp/SFVReader.cpp SFVReader::tryFile opens SFV file, finds "the.fp.
the.fp.
Changed in dcplusplus: | |
status: | Confirmed → Fix Committed |
There were numerous reports over the years of files being left out of share in situations similar to what's described here and this seems to be the most probable reason of those "randomly" skipped files in folders containing an .sfv file.
Thanks for taking care of reporting it.