Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2017 06:48:07 +0000
From:      Dexuan Cui <decui@microsoft.com>
To:        "rgrimes@freebsd.org" <rgrimes@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   RE: svn commit: r314891 - head/sys/boot/efi/loader
Message-ID:  <MWHPR03MB266971B9A12B1AB2E9C883B5BF2E0@MWHPR03MB2669.namprd03.prod.outlook.com>
In-Reply-To: <201703080433.v284XICJ098481@pdx.rh.CN85.dnsmgr.net>
References:  <201703080250.v282oTDF096183@repo.freebsd.org> <201703080433.v284XICJ098481@pdx.rh.CN85.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Rodney W. Grimes [mailto:freebsd@pdx.rh.CN85.dnsmgr.net]
> Sent: Wednesday, March 8, 2017 12:33
> > Author: dexuan
> > Date: Wed Mar  8 02:50:29 2017
> > New Revision: 314891
> > Log:
> >   loader.efi: finally fix the off-by-one bug in efi_verify_staging_size=
()
> >
> >   r314828(loader.efi: fix an off-by-one bug in efi_verify_staging_size(=
))
> >   doesn't really fix the bug and this patch adds the missing part.
> >
> >   It's a shame that I didn't make everything correct at the very beginn=
ing...
>=20
> My thoughts on that:
>=20
> Try as hard as we can and you well come up short on making software
> correct in the beginning as it is an iterative process.  Be glad you
> have found and fixed yet another small problem, and hope that in
> doing so you have not introduced another.
>=20
> I thank you for your persuit of this latent issue in loader.efi!
> --
> Rod Grimes =20

The lesson I learned here is that: do test the code with real test cases,
no matter how confident I'm in the patch, and no matter how small
the change would look like.

And another issue here is that actually I don't have a local physical
FreeBSD machine yet. Trying to set up one.

Thanks,
-- Dexuan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MWHPR03MB266971B9A12B1AB2E9C883B5BF2E0>