3 ms·
Ah c'mon at least try a bit harder. '''password''' is defined as: char password[LINE_MAX]; So that's preventing a buffer overflow and is perfectly fine. L
by badgersandjam 12y ago
Ah c'mon at least try a bit harder. '''password''' is defined as:
char password[LINE_MAX];
So that's preventing a buffer overflow and is perfectly fine.
LINE_MAX is a POSIX thing: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limi...
There's no one putting a silly limit on password length there.
I worked that out in 2 mins flat. Bear in mind I haven't even looked at the systemd source code before.
Edit: you know I've actually read some of that code and it's pretty nice.