[Bug 4105] chpasswd segmentation fault

bugzilla at busybox.net bugzilla at busybox.net
Sat Sep 10 11:57:37 UTC 2011


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

--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  ---
Can't reproduce.

The free is correct: pw_encrypt() returns malloced string:


                if (!(opt & OPT_ENC)) {
                        crypt_make_salt(salt, 1);
                        if (opt & OPT_MD5) {
                                salt[0] = '$';
                                salt[1] = '1';
                                salt[2] = '$';
                                crypt_make_salt(salt + 3, 4);
                        }
                        pass = pw_encrypt(pass, salt, 0);
                }
...
                if (!(opt & OPT_ENC))
                        free(pass);

-- 
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 busybox-cvs mailing list