Skip to content

Invalid computation of block hash in Blizzget #7

@ladislav-zezula

Description

@ladislav-zezula

The function void DataStorage::writeIndex() improperly calculates the Jenkins hash of the index data

Function:

blockHash = hashlittle(&write, sizeof write, blockHash);

This is how Blizzard Downloader does it:
https://github.com/ladislav-zezula/CascLib/blob/be1f076e4fcfccab0f2eb00368d458e6576f0bbb/src/CascIndexFiles.cpp#L185

This is how Blizzget does it:
https://github.com/ladislav-zezula/CascLib/blob/be1f076e4fcfccab0f2eb00368d458e6576f0bbb/src/CascIndexFiles.cpp#L202

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions