Skip to content

Conversation

valeriy42
Copy link
Contributor

  • Add safety comments to CStringCache.cc explaining NULL check safety
  • Add safety comments to vfprog/Main.cc explaining argv safety
  • These are false positives - strlen usage is safe in these contexts
  • No functional changes, documentation only

- Replace all 13 sprintf calls with snprintf in CStringUtils.cc
- Add sizeof(buf) parameter to prevent buffer overflows
- Maintains same functionality with improved security
- All tests pass after changes
- Replace sprintf with snprintf in CChecksum.cc line 35
- Add sizeof(buf) parameter to prevent buffer overflows
- Maintains same functionality with improved security
- All tests pass after changes
- Add safety comments to CStringCache.cc explaining NULL check safety
- Add safety comments to vfprog/Main.cc explaining argv safety
- These are false positives - strlen usage is safe in these contexts
- No functional changes, documentation only
@prodsecmachine
Copy link

prodsecmachine commented Oct 10, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

- Add SAFE comments to CNamedPipeFactory.cc explaining secure mkfifo usage
- Add SAFE comments to CSystemCallFilter_MacOSX.cc explaining secure mkstemps usage
- Both usages follow security best practices with restrictive permissions
- Marked corresponding SonarQube hotspots as SAFE (false positives)
- Fix LF characters issue by using proper string concatenation instead of literal newlines
- Fix init-statement issue by declaring errorbuf variable inside the if statement
- These changes address the SonarQube issues reported for pull request 2868
- Replace snprintf with std::format for all numeric type conversions
- Add #include <format> for C++20 std::format support
- Simplify typeToString functions by removing buffer management
- Update typeToStringPrecise to use std::format with proper precision
- Maintain existing post-processing logic for scientific notation formatting
- Addresses SonarQube warnings about using modern C++ formatting
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
5 New issues
4 New Critical Issues (required ≤ 0)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants