Infinite loop while validating real rom image
JulienVdG opened this issue · 0 comments
JulienVdG commented
I'm getting the following error on winterfell rom image with utk winterfell.rom validate
:
runtime: goroutine stack exceeds 1000000000-byte limit
fatal error: stack overflow
followed by repeating:
/home/jvdg/go/src/github.com/linuxboot/fiano/pkg/uefi/biosregion.go:140 +0x47 ...
github.com/linuxboot/fiano/pkg/visitors.(*Validate).Visit(0xc00000e570, 0x5c2200, 0xc0000781e0, 0x0, 0x0)
/home/jvdg/go/src/github.com/linuxboot/fiano/pkg/visitors/validate.go:218 +0x3001 ...
github.com/linuxboot/fiano/pkg/uefi.(*BIOSRegion).Apply(0xc0000781e0, 0x5c1a40, 0xc00000e570, 0x0, 0x0)
fiano/pkg/visitors/validate.go
Line 218 in 03f5e21
I guess this should read as:
if err := e.Value.Apply(v); err != nil {
return err
}