git: kernel -- file desc malloc zone overflow handling.

看板DFBSD_commit作者時間15年前 (2011/03/06 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
commit 2994659f1e6c1ef260241491bceca91c9d2553b3 Author: Venkatesh Srinivas <me@endeavour.zapto.org> Date: Sun Mar 6 05:18:24 2011 -0800 kernel -- file desc malloc zone overflow handling. Allow null return from mallocs for file descriptor arrays. Fork and exec will ENOMEM when we cannot allocate FD arrays. This is only a partial solution to bug 2019. Summary of changes: sys/kern/kern_descrip.c | 16 +++++++++++----- sys/kern/kern_exec.c | 4 +++- sys/kern/kern_fork.c | 12 ++++++++++-- sys/sys/filedesc.h | 2 +- 4 files changed, 25 insertions(+), 9 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2994659f1e6c1ef260241491bceca91c9d2553b3 -- DragonFly BSD source repository
文章代碼(AID): #1DSupRJ9 (DFBSD_commit)
文章代碼(AID): #1DSupRJ9 (DFBSD_commit)