Skip to content

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

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 !!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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