diff options
author | Einar Jón <tolvupostur@gmail.com> | 2019-01-08 16:31:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-08 16:32:25 +0100 |
commit | ce51140664d82300d25b096b4a41f01fdfd766b3 (patch) | |
tree | 95b02b340288d67e5fa10f4608066e9eed2354de /klibc-utils | |
parent | 959b04bc0e9d23daa51f75130c7d3eeacd91e52c (diff) | |
download | busybox-ce51140664d82300d25b096b4a41f01fdfd766b3.tar.gz |
passwd: initialize pointers correctly
Fix for running passwd as root (or sudo passwd $USER).
Crashed on call to free(orig) during cleanup.
Fix regression from commit 17058a06c4333fc0c492c168c8a971ebd0fd5a5a
Root user never changes the orig pointer, so when cleaning up, passwd tried to
free orig=(char*)""
Example: sudo passwd $USER
Changing password for xxx
New password:
Bad password: too short
Retype password:
Passwords don't match
free(): invalid pointer
Aborted
function old new delta
passwd_main 958 961 +3
Signed-off-by: Einar Jón <tolvupostur@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'klibc-utils')
0 files changed, 0 insertions, 0 deletions