Skip to content

Conversation

earlephilhower
Copy link
Collaborator

@earlephilhower earlephilhower commented Apr 9, 2019

In some cases the printf implememtation would call an internal puts()
implementation which did not use pgm_read_byte() to access the format
string. In many operating modes this would work, but in interrupts or
you'd get crashes.

Updated newlib to use pgm_read_byte in that one spot and recompiled.

In some cases the printf implememtation would call an internal puts()
implementation which did not use pgm_read_byte() to access the format
string.  In many operating modes this would work, but in interrupts or
when flash was disabled you'd get crashes.

Updated newlib to use pgm_read_byte in that one spot and recompiled.
@earlephilhower earlephilhower requested a review from d-a-v April 9, 2019 21:59
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes DEBUGV() with strings in flash printing parameters :)
Thanks!

@d-a-v d-a-v merged commit fa0db2e into esp8266:master Apr 10, 2019
@TD-er
Copy link
Contributor

TD-er commented Apr 10, 2019

Do you have any idea how long this bug was present?

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 10, 2019

@TD-er since #5728

@earlephilhower earlephilhower deleted the progmem-printf-fix branch April 10, 2019 15:22
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.

3 participants