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

[scudo] Compute the default aligned pointer without tag #92989

Merged
merged 1 commit into from
May 23, 2024

Commits on May 23, 2024

  1. [scudo] Compute the default aligned pointer without tag

    llvm#83493 slightly
    changed the order of computation of block addresses and
    pointers, causing the value of DefaultAlignedPtr to
    include the MTE tag. Move this computation earlier so it
    matches the old behavior.
    
    This fixes a UBSan failure in Trusty:
    secure os: UBSan: (overflow:-) external/scudo/standalone/combined.h:1070:35
    secure os: Details: unsigned integer overflow: 8988807738704 - 144124176883594576 cannot be represented in type 'uptr'
    ahomescu committed May 23, 2024
    Configuration menu
    Copy the full SHA
    fb7d23c View commit details
    Browse the repository at this point in the history