Menu

#15 cfv fails to detect files with trailing spaces in sfv file

open
nobody
None
5
2022-08-15
2010-08-26
No

cfv does not detect the file names correctly if the sfv file has trailing spaces after the file name before the CRC-32 checksum. Attaching an example set of files which one can use to replicate the bug. The file contains two text files foobar and foo, their contents are "foobar" and "foo" respectively. There are two sfv files bar.sfv and foo.sfv. cfv will fail to detect the file foo in bar.sfv because of additional spaces between file name and the crc-32 checksum. cfv will correctly detect the files when foo.sfv is used.

Discussion

  • Bharath Ramesh

    Bharath Ramesh - 2010-08-26
     
  • Viper Omega

    Viper Omega - 2022-08-15

    fix in line 1670:
    self.test_file(x.group(1).strip(),unhexlify(x.group(2)))
    #self.test_file(x.group(1),unhexlify(x.group(2)))

     

Log in to post a comment.