ChargePoint / wireshark-v2g

Dissector for the V2G Protocols
Other
45 stars 19 forks source link

"Range is out of bounds" error in handling malformed TLVs in ESDP message #71

Open JeremyWhaling opened 4 weeks ago

JeremyWhaling commented 4 weeks ago

Discovered when a TLV value is malformed within an ESDP packet, i.e., too short (in my case, it was a single byte instead of a proper TLV), the lua decoder would throw an error, "Range is out of bounds". The solution is to check for this in the function dissect_all_tlvs_in_packet. Once other pull requests have been processed, I will do a pull request with this fix.

jhart-cpi commented 4 weeks ago

It is fine if you want to address this now, it is going to be a bit of time before we can pick up the 15118-20 dissector work again.