Skip to content

Invalid UDP packet leads to UDP server crash. #89

@JacobHsieh

Description

@JacobHsieh

RISE-V2G works fine in serving multiple EVCCs with just a single SECC instance.

But when I was trying to send an invalid UDP packet directly to SECC port 15118 with no data,

1.) if the SECC has not served any EVCC (maybe just activated),
the invalid UDP packet will be correctly filtered as a false request (MessageHandler.isV2GTPMessageValid()).
image

2.) if the SECC has already served an EVCC, the invalid UDP packet will be incorrectly treated as a valid one. The UDP server will crash, and of course, the SECC cannot serve any new coming EVCC without re-activated.
image

I found out that in UDPServer.run(), the byte[] kind udpClientRequest is not being reset.
I wonder whether others meet the sample problem, and the code should reset udpClientRequest every time receiving a new coming UDP packet.
image

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