git: sh: Fix bss-based buffer overflow in . builtin.

看板DFBSD_commit作者時間14年前 (2011/08/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 332546d32a797c819b3a1804e66be73417674ff1 Author: Peter Avalos <pavalos@dragonflybsd.org> Date: Sun Aug 21 12:27:39 2011 -0700 sh: Fix bss-based buffer overflow in . builtin. If the length of a directory in PATH together with the given filename exceeded FILENAME_MAX (which may happen even for pathnames that work), a static buffer was overflown. The static buffer is unnecessary, we can use the stalloc() stack. Obtained-from: FreeBSD 222173 Summary of changes: bin/sh/main.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/332546d32a797c819b3a1804e66be73417674ff1 -- DragonFly BSD source repository
文章代碼(AID): #1EKPn9No (DFBSD_commit)