Skip to content

cmd/compile: unsafe.Add bug when adding uint8 value to a pointer [1.17 backport] #48561

Closed

Description

@gopherbot

@ianlancetaylor requested issue #48536 to be considered for backport to the next 1.17 minor release.

@gopherbot Please open a backport issue to Go 1.17.

This appears to be a bug in the implementation of unsafe.Add. This should be fixed to avoid silent miscompilation of valid code.

Activity

  1. added this to the Go1.17.2 milestone on Sep 22, 2021
  2. gopherbot commented on Sep 23, 2021

    @gopherbot
    ContributorAuthor

    Change https://golang.org/cl/351593 mentions this issue: [release-branch.go1.17] cmd/compile: fix unsafe.Add with small-size offsets operands

  3. added
    CherryPickApprovedUsed during the release process for point releases
    and removed
    CherryPickCandidateUsed during the release process for point releases
    on Oct 6, 2021
  4. gopherbot commented on Oct 6, 2021

    @gopherbot
    ContributorAuthor

    Change https://golang.org/cl/354352 mentions this issue: [release-branch.go1.17] cmd/compile: fold handling OCONV logic to separate function

  5. gopherbot commented on Oct 6, 2021

    @gopherbot
    ContributorAuthor

    Closed by merging b18ba59 to release-branch.go1.17.

  6. locked and limited conversation to collaborators on Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions