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

pkg/proc: pad variable mem in extractVarInfoFromEntry #3365

Merged
merged 2 commits into from
May 15, 2023

Commits on May 11, 2023

  1. pkg/proc: pad variable mem in extractVarInfoFromEntry

    On 64 bit system, the byte size of the following struct is 16:
        type myStruct struct {
           a int
           b uint32
        }
    But extractVarInfoFromEntry only allocates a mem of 12 bytes for it.
    When calling method of this struct with the "call" command, it will
    result in this error:
        write out of bounds
    
    This patch extends the mem by adding padding bytes to the end of the
    mem.
    
    Fixes go-delve#3364.
    ZekeLu committed May 11, 2023
    Configuration menu
    Copy the full SHA
    78e0ecd View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Configuration menu
    Copy the full SHA
    fe52241 View commit details
    Browse the repository at this point in the history