kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

accept's incorrect behavior when NULL arguments have been passed #657

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
accept failed if you will pass NULL addr or NULL addrlen as arguments.
I've discover this problem with Qt when it tried something like 
accept(socketDescriptor, 0, 0);

What is the expected output? What do you see instead?
POSIX says, that neither NULL addr nor NULL addrlen is not error - 
http://pubs.opengroup.org/onlinepubs/009695399/functions/accept.html

Original issue reported on code.google.com by alexkalmuk@gmail.com on 17 Oct 2013 at 4:07

GoogleCodeExporter commented 9 years ago
Removing of corresponding checks in function kaccept() have been solved this 
problem, but this fix should be looked more carefully at.

Original comment by alexkalmuk@gmail.com on 17 Oct 2013 at 4:20

GoogleCodeExporter commented 9 years ago
I'll fix it.

Original comment by ki.stfu on 17 Oct 2013 at 5:09

GoogleCodeExporter commented 9 years ago
fixed by r11324

Original comment by ki.stfu on 18 Oct 2013 at 2:39