Thanks to visit codestin.com
Credit goes to github.com

Skip to content

index out of range panic in parseMicEData #5

@cceremuga

Description

@cceremuga

Here's the raw packet which triggered the panic:

VE2DJE-9>P_0_P?,VE2PCQ-3*,WIDE1*,KD2AYD-13*,KA2QYE-10*,WIDE2*:'{g+l >/Richard EN ROUTE

and here's a partial stacktrace

panic: runtime error: index out of range [0] with length 0

goroutine 19 [running]:
github.com/pd0mz/go-aprs.(*Packet).parseMicEData(0xc00008dc90, 0x19, 0xc00005e9
cf)
        /home/craig/go/pkg/mod/github.com/pd0mz/[email protected]
4d6aa54791a/packet.go:303 +0x7d6
github.com/pd0mz/go-aprs.(*Packet).parse(0xc00008dc90, 0x2d, 0xc000068e70)
        /home/craig/go/pkg/mod/github.com/pd0mz/[email protected]
4d6aa54791a/packet.go:266 +0x145
github.com/pd0mz/go-aprs.ParsePacket(0xc00005e9c6, 0x57, 0x0, 0x0, 0x0, 0x0, 0x
0, 0x0, 0x0, 0x0, ...)
        /home/craig/go/pkg/mod/github.com/pd0mz/[email protected]
4d6aa54791a/packet.go:172 +0x385

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions