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

Set the byte slice cap correctly when unsafely converting string. #3487

Merged
merged 1 commit into from
Mar 16, 2021

Commits on Mar 15, 2021

  1. Set the byte slice cap correctly when unsafely converting string.

    Fixes grafana#3485
    
    Should also unblock grafana#3481
    
    When unsafely converting string to bytes the cap of the bytes is lost but not when doing bytes to string.
    It seems that this is only a problem when using go 1.16 or when using delve.
    
    Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
    cyriltovena committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    e122940 View commit details
    Browse the repository at this point in the history