SmingHub / SmingRTOS

46 stars 36 forks source link

m_printf crash when %02d value exceeds 99 #129

Open hreintke opened 8 years ago

hreintke commented 8 years ago

@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 commented 8 years ago

hi sure will try to repro and get a stack trace

ADiea commented 8 years ago

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