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

Tightening NUT #2824

Open
jimklimov opened this issue Feb 26, 2025 · 0 comments
Open

Tightening NUT #2824

jimklimov opened this issue Feb 26, 2025 · 0 comments
Labels
C-str Issues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocks portability We want NUT to build and run everywhere possible
Milestone

Comments

@jimklimov
Copy link
Member

jimklimov commented Feb 26, 2025

Be inspired by work done in cURL, we are not so far behind in many aspects. Further in others...

FOSDEM 2025 tightening every bolt - with Daniel Stenberg:

Points to ponder:

  • Reproducible (tarball) builds (see SOURCE_DATE_EPOCH)
  • More unit-testing and "Torture testing" with wrappers to make inner calls fail to see how outer methods deal with it (no leak/crash, etc.)
  • C89 compatibility is still possible :)
  • they ban use of sscanf, sprintf, vsprintf, strncpy, strcat, strncat and gets (note that fgets() has range checks and is safe(r)), and even gmtime/localtime, also LoadLibrary (we don't directly use it; WIN32 builds of libltdl might? maybe?)
@jimklimov jimklimov added portability We want NUT to build and run everywhere possible C-str Issues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocks labels Feb 26, 2025
@jimklimov jimklimov added this to the 2.8.4 milestone Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-str Issues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocks portability We want NUT to build and run everywhere possible
Projects
None yet
Development

No branches or pull requests

1 participant