Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomize OID object hashes #708

Merged
merged 1 commit into from
May 7, 2017

Commits on May 7, 2017

  1. Randomize OID object hashes

    Instead of using type punning to convert the OID to a Python hash, use
    _Py_HashBytes() to hash the OID again. This means we no longer make any
    assumptions on the internal representation of OID values or Python
    hashes (before this commit, we at least relied on the fact that OID
    hases are longer than Python hashes). Moreover, the random seed stored
    in PYTHONHASHSEED is now honored.
    
    This also fixes a compiler warning seen with -Wstrict-aliasing.
    
    Signed-off-by: Lukas Fleischer <lfleischer@lfos.de>
    lfos committed May 7, 2017
    Configuration menu
    Copy the full SHA
    f18de42 View commit details
    Browse the repository at this point in the history