Skip to content

fix: use of wrong strnlen variant on PROGMEM payload strings#1020

Open
muggenhor wants to merge 1 commit intoknolleary:masterfrom
muggenhor:fix/publish_P-correct-strnlen
Open

fix: use of wrong strnlen variant on PROGMEM payload strings#1020
muggenhor wants to merge 1 commit intoknolleary:masterfrom
muggenhor:fix/publish_P-correct-strnlen

Conversation

@muggenhor
Copy link
Copy Markdown

strnlen_P is needed to avoid the wrong method of reading to cause bad things to happen (CPU exceptions on ESP8266).

Fixes: #747

strnlen_P is needed to avoid the wrong method of reading to cause bad
things to happen (CPU exceptions on ESP8266).

Fixes: knolleary#747
@hmueller01
Copy link
Copy Markdown

This is fixed in
https://github.com/hmueller01/pubsubclient3
Maybe you give it a try.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

esp8266 crashes when using payload in PROGMEM (v2.8)

2 participants