We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c301e33 commit 2ea56ccCopy full SHA for 2ea56cc
cmd/evm/runner.go
@@ -246,7 +246,12 @@ func runCmd(ctx *cli.Context) error {
246
} else {
247
hexInput = []byte(ctx.GlobalString(InputFlag.Name))
248
}
249
- input := common.FromHex(string(bytes.TrimSpace(hexInput)))
+ hexInput = bytes.TrimSpace(hexInput)
250
+ if len(hexInput)%2 != 0 {
251
+ fmt.Println("input length must be even")
252
+ os.Exit(1)
253
+ }
254
+ input := common.FromHex(string(hexInput))
255
256
var execFunc func() ([]byte, uint64, error)
257
if ctx.GlobalBool(CreateFlag.Name) {
0 commit comments