Skip to content

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

@gopherbot

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.

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