delve/pkg
Zeke Lu 463b97dd36
pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365)
* 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 #3364.

* move the padding logic into newCompositeMemory
2023-05-15 14:46:33 -07:00
..
astutil proc: simplify next/step/stepout condition code 2020-04-04 11:00:54 -07:00
config trace: add timestamp to the output (#3358) 2023-05-08 10:41:47 -07:00
dwarf dwarf/godwarf: fix alignment calculation for typedef types (#3362) 2023-05-08 10:38:53 -07:00
elfwriter terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
gobuild gobuild: drop support for building on Go < 1.10 (#2960) 2022-04-06 12:02:21 -07:00
goversion *: CHANGELOG and bump to version 1.20.0 (#3209) 2022-12-08 10:34:57 -08:00
locspec *: misc improvements to config command and substitute-path rules (#3335) 2023-05-02 12:23:59 -07:00
logflags terminal/logflags: Added SetLoggerFactory(LoggerFactory) (#3257) 2023-02-14 09:46:35 -08:00
proc pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
terminal proc,terminal: read command line of new processes (#3346) 2023-05-09 11:40:00 -07:00
version v1.20.2 2023-04-05 11:25:22 +02:00