Loading ...
Sorry, an error occurred while loading the content.

5597Re: sscanf bugs (nuttx-6.30)

Expand Messages
  • kfrolov
    Mar 30, 2014
    • 0 Attachment
      Only 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).
    • Show all 12 messages in this topic