Skip to content

Uncaught exception while accessing JSON data when input is doesnt contain expected field #1117

@SohamG

Description

@SohamG

While fuzz testing EVerest, I found that the following .at() function call throws an exception but the exception is never caught. This causes a crash when the json message received is well-formed JSON but does not contain the expected field that is being accessed (ie is malformed OCPP).

Affiliation: Discovery Partners Institute, University of Illinois Chicago, Prof Rigel Gjomemo

c.msg = j.at(CALLRESULT_PAYLOAD);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions