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

Zero out padding in custom Default trait implementations #2051

Merged
merged 2 commits into from May 11, 2021

Commits on May 8, 2021

  1. Zero out padding in custom Default trait implementations

    Previously, we were using `std::mem::zeroed()` which unfortunately does
    not necessarily zero out padding. It'd be better if the padding is
    zeroed out because some libraries are sensitive to non-zero'd out bytes,
    especially when forward/backward compatability is involved.
    
    This commit ensures all bytes are zeroed out in custom Default trait
    implementations.
    danobi committed May 8, 2021
    Copy the full SHA
    19a0aaf View commit details
    Browse the repository at this point in the history

Commits on May 10, 2021

  1. Update codegen fixtures

    danobi committed May 10, 2021
    Copy the full SHA
    7b23621 View commit details
    Browse the repository at this point in the history