Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora linter, Forbidden function symbols found: inet_addr inet_aton inet_ntoa #936

Open
pavel-odintsov opened this issue Jun 1, 2022 · 3 comments

Comments

@pavel-odintsov
Copy link
Owner

We've got following warning from Fedora's linter: https://osci-jenkins-1.ci.fedoraproject.org/job/fedora-ci/job/rpminspect-pipeline/job/master/104394/testReport/(root)/tests/_badfuncs/

The reason of such warning is well described here: https://github.com/rpminspect/rpminspect-data-fedora/blob/master/fedora.yaml#L719

I think we need to review our approach for these functions if possible.

@pavel-odintsov
Copy link
Owner Author

Examples:

servaddr.sin_addr.s_addr = inet_addr(interface_for_binding.c_str());
inet_aton(ip.c_str(), &ip_addr);
std::string convert_ip_as_uint_to_string(uint32_t ip_as_integer) {

@pavel-odintsov
Copy link
Owner Author

We get rid of one of them actually as part of project to port to Windows.

pavel-odintsov added a commit that referenced this issue Oct 20, 2023
@pavel-odintsov
Copy link
Owner Author

One more fix in sFlow logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant