[Bug 7808] crypt(3) does not fail for invalid salts

bugzilla at busybox.net bugzilla at busybox.net
Mon Jan 19 14:52:24 UTC 2015


https://bugs.busybox.net/show_bug.cgi?id=7808

--- Comment #1 from Bernhard Reutner-Fischer <aldot at uclibc.org> 2015-01-19 14:52:23 UTC ---
So what do you suggest?

    if (salt[0] == '$' && salt[2] == '$') {
[handle 1, 5, 6]
            else {
                __set_errno(EINVAL);
                return NULL;
            }
        }
        return __des_crypt(ukey, usalt);
}

?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list