Skip to content

Null pointer read exception reboot loop with use of a ESP32 Board #2

@C-razyBlue

Description

@C-razyBlue

I got reboot loop crashes with the use of this library on a ESP32 board...

I managed to solve this by adding two null pointer - if's checks after the two strtok's in the souce code...
Now it's working fine...

label = strtok(line, "\t");
// Null pointer check, ESP32 Crashed without this
if (label)
{

value_str = strtok(0, "\t");
// Null pointer check, ESP32 Crashed without this
if (value_str)
{

Thanks for this great library !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions