Re: strcpy -> strlcpy?

看板DFBSD_kernel作者時間21年前 (2005/01/03 21:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/13 (看更多)
On Monday 03 January 2005 03:11, Anil Madhavapeddy wrote: > If you're interested, we've got some simple modifications in the OpenBSD > gcc (both 2.95 and 3.3) which checks for these kinds of errors. It > does need relevant functions like strlcpy(3) to be marked up with > attributes to indicate which arguments are buffers and which are buffer > sizes. You could find some easy infos here: http://www.onlamp.com/lpt/a/4676
文章代碼(AID): #11sK8O00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #11sK8O00 (DFBSD_kernel)