5597Re: sscanf bugs (nuttx-6.30)
- Mar 30, 2014Only change is to break parsing cycle ("if (!*buf) break;") when parsed string is parsed till its end, but we have some unparsed parameters in format string. It is necessary to stop increasing "count" value (result of sscanf function). Without this we have the following: sscanf("5", "%u%u", &n, &n) == 2. That is incorrect (return value in that case must be 1).
- << Previous post in topic Next post in topic >>