Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m_printf crash when %02d value exceeds 99 #129

Open
hreintke opened this issue Jun 21, 2016 · 2 comments
Open

m_printf crash when %02d value exceeds 99 #129

hreintke opened this issue Jun 21, 2016 · 2 comments
Labels

Comments

@hreintke
Copy link
Collaborator

@ADiea :
Can you take a look on this.

It can be reproduced including : Serial.printf("cnt = %02d\r\n",100);

Issue is in both SmingNONOS and SmingRTOS

@ADiea
Copy link

ADiea commented Jun 22, 2016

hi sure will try to repro and get a stack trace

@ADiea
Copy link

ADiea commented Jun 22, 2016

always happening when strlen(arg) > width for %u %d because string index becomes <0.
Fixed in sming with pending pr 748.
Unfortunately cannot provide PR for smingRTOS (env not setup)
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants