Editing Vulnerabilities
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 324: | Line 324: | ||
* Calc. Length: FileSize - 4 | * Calc. Length: FileSize - 4 | ||
<source lang=" | <source lang="cpp"> | ||
private int CalculateChecksum(byte[] data) { | private int CalculateChecksum(byte[] data) { | ||
using (var xIO = new MasterIO(data, Endian.Big)) { | using (var xIO = new MasterIO(data, Endian.Big)) { | ||
Line 340: | Line 340: | ||
* Calc. Start: 16 | * Calc. Start: 16 | ||
* Calc. Length: Filesize - 16 | * Calc. Length: Filesize - 16 | ||
<source lang=" | <source lang="cpp"> | ||
private int CalculateChecksum(byte[] data, int offset, int size) { | private int CalculateChecksum(byte[] data, int offset, int size) { | ||
int sum = -1; | int sum = -1; |