On 02/25/16 03:04, David Woodhouse wrote: > On Wed, 2016-02-24 at 22:13 +0100, Laszlo Ersek wrote: >> The free() wrapper in BaseCryptLib has a bug that has been triggered >> by David's recent OpenSSL work. The series fixes the bug, plus >> more instances of the same. > > Should we not just fix the underlying FreePool() function to do the > sane thing.
It crossed my mind, but FreePool() is extremely widely used, it has a detailed interface contract, and its current behavior matches its interface contract. I'm not up to auditing all uses of FreePool(), to find the one that perversely enforces a failure return form FreePool(NULL). :) > Anyway, I've rebased my tree on top of yours, Thanks -- I'll push the first three patches to edk2 master in a minute, and I'll post a new version of the fourth. > split up the patch > changes into separate bisectable commits, and pushed my tree out again > to http://git.infradead.org/users/dwmw2/edk2.git I skimmed your fresh master -- the way the patch evolves looks excellent. I guess it took a lot of effort. > Both Cryptest.efi and the test boot of Fedora 22 are working correctly > at all stages. Perfect. > Again, the final two commits aren't ready yet. But the rest probably > are if they build OK on Windows. > > I do still want to kill that -w. And why in $DEITY's name do we not > already have -nostdinc in our CFLAGS for the whole EDK2 build? I propose to involve our BaseTools overlords here... Thanks Laszlo _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

