Skip to content

Tightening NUT #2824

Open
Open
@jimklimov

Description

@jimklimov

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-strIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocksportabilityWe want NUT to build and run everywhere possiblerefactor/fightwarnPR or issue proposal to improve code maintainability without functional changes, or to fix warnings

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions