nwrap_getaddrinfo function accept input in service param like:
rc = getaddrinfo(NULL, "80a1", &hints, &res);
This is handled by nwrap and 0 is returned. EAI_NONAME should be returned.
Created attachment 11416 [details]
nwrap: Better check service string sanity.
Fixes bug 11501.
Patch use strtol() instead of atoi() to convert strings to numbers.
This helps better check sanity of service input string.
TESTS: Added new test: test_nwrap_getaddrinfo_flags_ai_numericserv
Test checks if non-valid input is passed correctly.
Robin, is this patch still valid for the current master tree? If yes, please rebase it.
Hi Andreas. Bug is still valid.
Proposed patch is here:
nss_wrapper-1.1.0 has been released addressing the issue.