git: Kernel - replace unbounded uses of kvcprintf() and reduce s

看板DFBSD_commit作者時間16年前 (2009/08/30 12:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit da65538369cf80e4559f8ef86db7c0913b222890 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Aug 29 20:46:41 2009 -0700 Kernel - replace unbounded uses of kvcprintf() and reduce stack use by devfs * Replace unbounded uses of kvcprintf() to guarantee that buffers do not overflow. * Do not declare PATH_MAX buffers on the stack. Use kvasnrprintf() or kmalloc() to allocate space. * In make_autoclone_dev() fix an improper use of a buffer passed as the fmt argument to make_dev(). Summary of changes: sys/dev/raid/vinum/vinumconfig.c | 14 +---- sys/kern/kern_conf.c | 53 ++++++-------------- sys/sys/devfs.h | 1 - sys/vfs/devfs/devfs_core.c | 103 +++++++++++++++----------------------- 4 files changed, 58 insertions(+), 113 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/da65538369cf80e4559f8ef86db7c0913b222890 -- DragonFly BSD source repository
文章代碼(AID): #1AcVc3zW (DFBSD_commit)