SmingRTOS icon indicating copy to clipboard operation
SmingRTOS copied to clipboard

m_printf crash when %02d value exceeds 99

Open hreintke opened this issue 8 years ago • 2 comments

@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

hreintke avatar Jun 21 '16 15:06 hreintke

hi sure will try to repro and get a stack trace

ADiea avatar Jun 22 '16 07:06 ADiea

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

ADiea avatar Jun 22 '16 19:06 ADiea