diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-12-08 16:28:27 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-12-08 16:28:27 +0000 |
commit | df4f3c7a240ef94f84eb88d354b82cb5bce6fdb0 (patch) | |
tree | 5618932904c5521135f57d91e62104b01cb70db8 /etc | |
parent | 18490db5be741f5656287639389ac3766012bc28 (diff) |
rewrite guts of getusershell() to avoid possibility of overflow.
instead of trying to allocate "just enough" memory based on the size of the
file (which is mostly comments, in fact), allocate memory on demand.
i.e., save memory by wasting it. also be a little stricter about parsing.
after discussion with tobias. (with a bug fix from patrick keshishian)
descended from bug glibc bug 18660 via tobias.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions