Re: sysctl warns6 cleanup

看板DFBSD_submit作者時間21年前 (2005/01/09 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/10 (看更多)
I'll re-examine sysctl after Chris' commit. > There should be at least a check for the value of len, to ensure that > it actually fits into an int. Roger that. [snip] > Dont do this, please. Use a new variable or reuse sep, this are constant > strings and should stay so. Sorry; I got into my head that val was being passed to some destructive function. Obviously I was dreaming. [snip] > Change oidfmt and sysctl_all to take the lenght as size_t instead. Will do. My misstake was assuming sysctl_all accepted an int for a reason, instead of checking if it made sense to just go ahead and change it. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org
文章代碼(AID): #11u3L400 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #11u3L400 (DFBSD_submit)