Date: Fri, 17 Jul 2015 00:16:07 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: "Pedro F. Giffuni" <pfg@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285644 - head/contrib/sqlite3 Message-ID: <20150716221607.GA82595@ivaldir.etoilebsd.net> In-Reply-To: <201507162207.t6GM7ECT009955@repo.freebsd.org> References: <201507162207.t6GM7ECT009955@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 16, 2015 at 10:07:14PM +0000, Pedro F. Giffuni wrote: > Author: pfg > Date: Thu Jul 16 22:07:13 2015 > New Revision: 285644 > URL: https://svnweb.freebsd.org/changeset/base/285644 >=20 > Log: > sqlite: clean a couple of invocations of memcpy(3) > =20 > Found almost accidentally by our native gcc when enhanced with > FORTIFY_SOURCE. > =20 > Submitted by: Oliver Pinter > Sponosored by: Google Inc. GSoC 2015 >=20 > Modified: > head/contrib/sqlite3/sqlite3.c >=20 > Modified: head/contrib/sqlite3/sqlite3.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/contrib/sqlite3/sqlite3.c Thu Jul 16 19:40:18 2015 (r285643) > +++ head/contrib/sqlite3/sqlite3.c Thu Jul 16 22:07:13 2015 (r285644) > @@ -49487,9 +49487,9 @@ static void walIndexWriteHdr(Wal *pWal){ > pWal->hdr.isInit =3D 1; > pWal->hdr.iVersion =3D WALINDEX_MAX_VERSION; > walChecksumBytes(1, (u8*)&pWal->hdr, nCksum, 0, pWal->hdr.aCksum); > - memcpy((void *)&aHdr[1], (void *)&pWal->hdr, sizeof(WalIndexHdr)); > + memcpy((void *)&aHdr[1], (const void *)&pWal->hdr, sizeof(WalIndexHdr)= ); > walShmBarrier(pWal); > - memcpy((void *)&aHdr[0], (void *)&pWal->hdr, sizeof(WalIndexHdr)); > + memcpy((void *)&aHdr[0], (const void *)&pWal->hdr, sizeof(WalIndexHdr)= ); > } > =20 > /* >=20 Have you upstreamed that? because given how sqlite3.c file is done it will = be a pain on next update to not drop this change! Best regards, Bapt --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWoLScACgkQ8kTtMUmk6ExQ1gCfd03OVZVWN1rFOODjA45YvJjJ 9ngAoJWIsXSJp135eZ7p+hwE2v1Fy0qG =mXQH -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150716221607.GA82595>