Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix IPv4 address parsing due to not-so-portable scanf modifier #6524
If newlib is compiled without C99 switch,
Created as https://os.mbed.com/forum/bugs-suggestions/topic/30567/
Pull request type
I believe we are still sometimes using a newlib-nano that lacks C99 stuff. Very annoying - particularly due to lack of %llu for 64-bit.
Given that, this change is okay. Was going to nak it because I thought we were losing a 0-255 range check, but it turns out
scanf doesn't actually range check anyway - it's always just been undefined behaviour if out of range.
Build number : 1661
Build number : 1294