You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Adam Debreceni (Jira)" <ji...@apache.org> on 2020/09/24 07:41:00 UTC

[jira] [Created] (MINIFICPP-1379) Fix UUID parsing

Adam Debreceni created MINIFICPP-1379:
-----------------------------------------

             Summary: Fix UUID parsing
                 Key: MINIFICPP-1379
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1379
             Project: Apache NiFi MiNiFi C++
          Issue Type: Bug
            Reporter: Adam Debreceni


The sscanf-based uuid parsing allows uuids in otherwise invalid formats:

// longer than the format (dropping the extra)

00000000-0000-0000-0000-123456789abcfffff

// containing "invalid" characters as the last character (discarding 'Z' and yielding 11 as the last byte)

00000000-0000-0000-0000-123456789abZ

// extra hyphens in the middle of uuid (parsed as negative then converted to unsigned)

00000000-00-c0-0000-0000-123456789abc



--
This message was sent by Atlassian Jira
(v8.3.4#803005)