Skip to content

Invalid truncation of getopt() result from int to char #181

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

Closed
eyalroz opened this issue Jul 19, 2024 · 0 comments
Closed

Invalid truncation of getopt() result from int to char #181

eyalroz opened this issue Jul 19, 2024 · 0 comments
Labels
bug Something isn't working resolved-on-develop A changeset fixing this issue has been commiutted to the development branch testing Only relevant to the testing programs rather than the main code itself

Comments

@eyalroz
Copy link
Owner

eyalroz commented Jul 19, 2024

Our autotest executable (not part of the library - just testing code) uses the getopt() function.

Adam Bosely said:

getopt returns an int and truncating it to a char causes issues on my system
https://man7.org/linux/man-pages/man3/getopt.3.html

and suggested a fix with PR #177 .

@eyalroz eyalroz added bug Something isn't working resolved-on-develop A changeset fixing this issue has been commiutted to the development branch testing Only relevant to the testing programs rather than the main code itself labels Jul 19, 2024
phillipjohnston pushed a commit to embeddedartistry/printf that referenced this issue Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved-on-develop A changeset fixing this issue has been commiutted to the development branch testing Only relevant to the testing programs rather than the main code itself
Projects
None yet
Development

No branches or pull requests

1 participant