-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.11
-
Component/s: omci-lib-go
-
Labels:None
-
Story Points:1
-
Epic Link:
A panic occurs during serialization of GetAllAlarmsNextResponse in OMCI extended format:
{{panic: runtime error: slice bounds out of range [98:74]
goroutine 135 [running]:
github.com/opencord/omci-lib-go/v2.(*GetAllAlarmsNextResponse).SerializeTo(0xc000893cb0, 0x127b080, 0xc00045a550, 0xc000800001, 0x40e688, 0x50)
/app/vendor/github.com/opencord/omci-lib-go/v2/alarms.go:540 +0x829
github.com/google/gopacket.SerializeLayers(0x127b080, 0xc00045a550, 0xc000800001, 0xc000803e28, 0x2, 0x2, 0x2, 0x4)
/app/vendor/github.com/google/gopacket/writer.go:210 +0xcd
github.com/opencord/bbsim/internal/common/omci.CreateGetAllAlarmsNextResponse(0x12b37c0, 0xc000235a20, 0xc0000a09c0, 0xc000599fb0, 0x1, 0xc0001374a0, 0xc000651160, 0x0, 0x0)
/app/internal/common/omci/alarms.go:219 +0x6f4
github.com/opencord/bbsim/internal/bbsim/devices.(*Onu).handleOmciRequest(0xc0006ee580, 0xc0004a0b40, 0x1, 0xc0000a09c0, 0x12b37c0, 0xc000235a20, 0x127df60, 0xc000651160, 0x0, 0x0)
/app/internal/bbsim/devices/onu.go:1268 +0x164c
github.com/opencord/bbsim/internal/bbsim/devices.(*Onu).ProcessOnuMessages(0xc0006ee580, 0x1271140, 0xc000511340, 0x127df60, 0xc000651160, 0x0, 0x0)
/app/internal/bbsim/devices/onu.go:463 +0xc2b
created by github.com/opencord/bbsim/internal/bbsim/devices.CreateONU.func3
/app/internal/bbsim/devices/onu.go:231 +0x143 }}