Date: Sun, 07 Jan 2018 19:00:43 +0100 From: "Kristof Provost" <kp@FreeBSD.org> To: rgrimes@freebsd.org Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r327674 - in head: share/man/man9 sys/kern sys/sys Message-ID: <89EADF3F-DFCB-4EE7-8FE6-5129B77411EB@FreeBSD.org> In-Reply-To: <201801071755.w07HtCAU017655@pdx.rh.CN85.dnsmgr.net> References: <201801071755.w07HtCAU017655@pdx.rh.CN85.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7 Jan 2018, at 18:55, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] >> Author: kp >> Date: Sun Jan 7 13:21:01 2018 >> New Revision: 327674 >> URL: https://svnweb.freebsd.org/changeset/base/327674 >> >> Log: >> Introduce mallocarray() in the kernel >> >> Similar to calloc() the mallocarray() function checks for integer >> overflows before allocating memory. >> It does not zero memory, unless the M_ZERO flag is set. >> >> Reviewed by: pfg, vangyzen (previous version), imp (previous = >> version) >> Obtained from: OpenBSD >> Differential Revision: https://reviews.freebsd.org/D13766 >> >> Modified: head/sys/kern/kern_malloc.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >> --- head/sys/kern/kern_malloc.c Sun Jan 7 10:29:15 2018 (r327673) >> +++ head/sys/kern/kern_malloc.c Sun Jan 7 13:21:01 2018 (r327674) >> @@ -4,6 +4,7 @@ >> * Copyright (c) 1987, 1991, 1993 >> * The Regents of the University of California. >> * Copyright (c) 2005-2009 Robert N. M. Watson >> + * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net> (mallocarray) > > Is this code really over a decade old???? or is this a typo? > > That=E2=80=99s the copyright statement OpenBSD have for it, and that=E2=80= =99s where = it came from: https://github.com/openbsd/src/blob/3031d9a2ee043e48086ede83d43c1e37d034a= ff4/sys/kern/kern_malloc.c#L705 Regards, Kristof
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89EADF3F-DFCB-4EE7-8FE6-5129B77411EB>