[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/10] qtest: Be paranoid about accept() addrlen
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 05/10] qtest: Be paranoid about accept() addrlen argument |
Date: |
Thu, 24 Apr 2014 07:18:44 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 04/24/2014 06:55 AM, Eric Blake wrote:
> On 04/24/2014 06:49 AM, Andreas Färber wrote:
>> POSIX specifies that address_len shall on output specify the length of
>> the stored address; it does not however specify whether it may get
>> updated on failure as well to, e.g., zero.
>
> Your reading of POSIX leaving the value undefined matches mine. It may
> indeed be worth a report to the POSIX folks to see if that should be
> tightened in the future to guarantee that it is unchanged on failure,
> but we can't rely on that now.
FYI - I filed that enhancement request:
http://austingroupbugs.net/view.php?id=836
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 04/10] qtest: Add error reporting to socket_accept(), (continued)
- [Qemu-devel] [PATCH 08/10] tests: Add intel-hda qtests, Andreas Färber, 2014/04/24
- [Qemu-devel] [PATCH 10/10] tests: Add EHCI qtest, Andreas Färber, 2014/04/24
- [Qemu-devel] [PATCH 07/10] tests: Add es1370 qtest, Andreas Färber, 2014/04/24
- [Qemu-devel] [PATCH 03/10] qtest: Assure that init_socket()'s listen() does not fail, Andreas Färber, 2014/04/24
- [Qemu-devel] [PATCH 02/10] MAINTAINERS: Document I2C libqos, Andreas Färber, 2014/04/25
- [Qemu-devel] [PATCH 06/10] tests: Add ac97 qtest, Andreas Färber, 2014/04/25
- [Qemu-devel] [PATCH 05/10] qtest: Be paranoid about accept() addrlen argument, Andreas Färber, 2014/04/25
- [Qemu-devel] [PATCH 01/10] MAINTAINERS: Take maintainership for QTest, Andreas Färber, 2014/04/25
- Re: [Qemu-devel] [PATCH 01/10] MAINTAINERS: Take maintainership for QTest, Paolo Bonzini, 2014/04/28