Skip to content

Commit 9d66394

Browse files
committed
Update pyfoxfile.py
1 parent b2cbb4f commit 9d66394

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyfoxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9561,7 +9561,7 @@ def FoxFileValidate(infile, fmttype="auto", filestart=0,
95619561
VerbosePrintOut(outfname)
95629562
VerbosePrintOut("Record Number " + str(il) + "; File ID " + str(fid) + "; iNode Number " + str(finode))
95639563

9564-
if(outfcs == infcs):
9564+
if(hmac.compare_digest(infcs, outfcs)):
95659565
if(verbose):
95669566
VerbosePrintOut("File Header Checksum Passed at offset " + str(outfhstart))
95679567
VerbosePrintOut("'" + outfcs + "' == " + "'" + infcs + "'")
@@ -9573,7 +9573,7 @@ def FoxFileValidate(infile, fmttype="auto", filestart=0,
95739573
VerbosePrintOut("'" + outfcs + "' != " + "'" + infcs + "'")
95749574

95759575
if(outfjsonsize > 0):
9576-
if(outfjsonchecksum == injsonfcs):
9576+
if(hmac.compare_digest(injsonfcs, outfjsonchecksum)):
95779577
if(verbose):
95789578
VerbosePrintOut("File JSON Data Checksum Passed at offset " + str(outfjstart))
95799579
VerbosePrintOut("'" + outfjsonchecksum + "' == " + "'" + injsonfcs + "'")

0 commit comments

Comments
 (0)