This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/18665] In send_dg, the recvfrom function is NOT always using the buffer size of a newly created buffer.
- From: "rhollida at ciena dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 14 Jul 2015 22:05:11 +0000
- Subject: [Bug network/18665] In send_dg, the recvfrom function is NOT always using the buffer size of a newly created buffer.
- Auto-submitted: auto-generated
- References: <bug-18665-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18665
--- Comment #5 from Robert <rhollida at ciena dot com> ---
I assume this is happening because this code was never sufficiently tested with
large packets.
I had done some statistics which show typical packet lengths received for DNS
queries.
Received packet lengths:
122, 128, 47, 80, 59, 73, 226, 50, 161
It looks like the code that allocates more buffer space starting on line
1271, is not used much, so probably does not get a lot of testing, because most
of the time the default buffer of 2048 bytes is less than the largest packet I
received of 161 bytes.
--
You are receiving this mail because:
You are on the CC list for the bug.