summaryrefslogtreecommitdiffstats
path: root/sys/dev/pv/files.pv
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-12-08 16:28:26 +0000
committertedu <tedu@openbsd.org>2015-12-08 16:28:26 +0000
commit7a4171b0ac9426e73c417e6fdadbbc40d835f400 (patch)
tree9a213423dafcc8512896cf5fa26720720fc67b43 /sys/dev/pv/files.pv
parentRestore parenthesis (diff)
downloadwireguard-openbsd-7a4171b0ac9426e73c417e6fdadbbc40d835f400.tar.xz
wireguard-openbsd-7a4171b0ac9426e73c417e6fdadbbc40d835f400.zip
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 'sys/dev/pv/files.pv')
0 files changed, 0 insertions, 0 deletions