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

reserved identifier violation #162

Open
elfring opened this issue Feb 1, 2023 · 6 comments
Open

reserved identifier violation #162

elfring opened this issue Feb 1, 2023 · 6 comments

Comments

@elfring
Copy link

elfring commented Feb 1, 2023

I would like to point out that identifiers like “_CNNEF_H_” and “_NNEF_FRAGMENT_H_do not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?

@gyenesvi
Copy link
Contributor

gyenesvi commented Mar 1, 2023

@elfring Thanks for noting this, though I'm not sure what your suggestion is here. According to my interpretation, the only danger could be that the header names used might become the name of a standard header at some point. However, since they are prefixed with NNEF, I am pretty sure that will not happen. Or is it something else?

@elfring
Copy link
Author

elfring commented Mar 1, 2023

💭 How do you think about to avoid that this software depends on undefined behaviour?

@gyenesvi
Copy link
Contributor

gyenesvi commented Mar 1, 2023

Sure, I get that it may be the case, but as I see that only kicks in if a standard header/macro is named the same way, right? And I believe that it has extremely low chance (given that NNEF is a trademarked name), which would make this issue extremely low priority for us. Or do you see it otherwise? Please explain the situation that could possibly go wrong!

@elfring
Copy link
Author

elfring commented Mar 1, 2023

💭 I would appreciate if you would care more for standard compliance also according to affected implementation details.

@gyenesvi
Copy link
Contributor

gyenesvi commented Mar 1, 2023

I would have appreciated if you explained the problem as I asked for. I do care for compliance, but I have other priorities to work on. In lack of further explanation, I assume this can be problematic with extremely low chance, so I'll handle this with low priority.

@elfring
Copy link
Author

elfring commented Mar 1, 2023

… if you explained the problem as I asked for.

💭 This software tampers still with the reserved name space, doesn't it?

…, so I'll handle this with low priority.

🔮 Should you adhere to secure programming guidelines better?

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

2 participants