tinyGS icon indicating copy to clipboard operation
tinyGS copied to clipboard

Crash if begine command received with no sat value

Open mdkendall opened this issue 4 years ago • 0 comments

https://github.com/G4lile0/tinyGS/blob/2c688b85da829335d09b68ddcf8e5fe13a6faa85/tinyGS/src/Mqtt/MQTT_Client.cpp#L401

If a "begine" command is received from the MQTT broker which has no "sat" value, doc["sat"].as<char *>() returns a nullptr and then the call to strcpy() results in a null dereference and crash.

mdkendall avatar Jan 16 '22 05:01 mdkendall