[Bug 12956] New: add new user or change user password will not succeed

bugzilla at busybox.net bugzilla at busybox.net
Wed May 27 00:57:22 UTC 2020


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

            Bug ID: 12956
           Summary: add new user or change user password will not succeed
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: giantbull at hotmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 8476
  --> https://bugs.busybox.net/attachment.cgi?id=8476&action=edit
the fix to the passwd issue

when try to add new user with password assigned, after enter user password and
confirmed, it will show "invalid pointer" error on the console

====================================
 adduser test
Changing password for test
New password:
Bad password: too short
Retype password:
*** Error in `passwd': munmap_chunk(): invalid pointer: 0x0000000120255438 ***
[   44.117187] IPVS: Creating netns size=1280 id=2
Aborted (core dumped)
#
=====================================

the reason is that in file loginutils/passwd.c, function new_password, variable

char *orig = (char*)"";

is allocated statically, but later it memory will be release by free() function

the fix is attached

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list