[libvirt] [PATCH 4/4] build: avoid double-close bug with pipe2

Eric Blake eblake at redhat.com
Thu Jun 30 17:46:17 UTC 2011


On 06/30/2011 08:24 AM, Daniel P. Berrange wrote:
> On Thu, Jun 30, 2011 at 08:14:56AM -0600, Eric Blake wrote:
>> Based on Coverity's finding on the previous patch, I audited
>> gnulib's pipe2 code and found that we had the potential for
>> a subtle double-close bug, unless gnulib guarantees that the
>> contents of the fd array are unchanged on pipe2() failure.
>>
>> * .gnulib: Update to latest, for pipe2 fix.
>> ---
>>  .gnulib |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/.gnulib b/.gnulib
>> index cbfd25f..7269b35 160000
>> --- a/.gnulib
>> +++ b/.gnulib
>> @@ -1 +1 @@
>> -Subproject commit cbfd25f0edf5f4b853e8ed2e01a4782ec80faba2
>> +Subproject commit 7269b35c8d9be1a6f97906b9e29b8c422b92fc31
> 
> 
> ACK

Series pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110630/97086274/attachment-0001.sig>


More information about the libvir-list mailing list