[hackers] [ubase][PATCH] passwd: fix crashes for unencrypted passwords starting with 'x'.

2018-09-25 Thread Mario J. Rugiero
From: Mario Rugiero When deciding where the previous hash should come from, is is assumed that 'x' started strings all mean to look in shadow. This is probably harmless in practice, since modern Linux still use only hashes instead of raw passwords. However, this is more robust, and more

Re: [hackers] [ubase][PATCH] passwd: fix crashes for unencrypted passwords starting with 'x'.

2018-09-25 Thread Mario Rugiero
El mar., 25 sep. 2018 02:03, Quentin Rameau escribió: > Hello Mario, > > > - if (pw->pw_passwd[0] == 'x') > > + if (pw->pw_passwd[0] == 'x' && > > + pw->pw_passwd[0] == '\0') > > Did you mean “pw->pw_passwd[1] == '\0')”? > > Yes. I'll send a fix later.

[hackers] [ubase][PATCH] passwd: fix crashes for unencrypted passwords starting with 'x'.

2018-09-24 Thread Mario J. Rugiero
From: Mario Rugiero When deciding where the previous hash should come from, is is assumed that 'x' started strings all mean to look in shadow. This is probably harmless in practice, since modern Linux still use only hashes instead of raw passwords. However, this is more robust, and more