Bug 214319 - ficl uuid-to-string is broken
Summary: ficl uuid-to-string is broken
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-08 12:57 UTC by Toomas Soome
Modified: 2016-11-08 12:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toomas Soome freebsd_committer 2016-11-08 12:57:50 UTC
First, the uuid-to-string description should be:

uuid-to-string ( addr' -- addr n | -1 )

and ficlUuidToString() has broken test:

        if (status != uuid_s_ok) {
                stackPushPtr(pVM->pStack, uuid);
                stackPushINT(pVM->pStack, strlen(uuid));
        }

it should use == instead.