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

createNewTainted flag for the AddSecureMarksToTaintedString method #114

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

iunanua
Copy link
Collaborator

@iunanua iunanua commented Jan 15, 2025

What does this PR do?

  • Add the new createNewTainted argument to AddSecureMarksToTaintedString method:
    • If its value is undefined or true AddSecureMarksToTaintedString will continue creating a new tainted with the secure marks.
    • If false the method will update the tainted with the new marks
  • Redefine secure_marks_t as uint32_t to allow more secure marks as we need one for each vulnerability type and some more.

Motivation

Additional Notes

Checklist

  • Unit tests have been updated and pass

@iunanua iunanua requested a review from a team as a code owner January 15, 2025 16:40
let referenceEqual
function makeReferenceEqual () {
// eslint-disable-next-line no-new-func
referenceEqual = new Function('value1', 'value2', 'return %ReferenceEqual(value1, value2)')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Quality Violation

The Function constructor is eval. (...read more)

The Function constructor can lead to code similar to eval executions. Use function declarations instead of the Function constructor.

View in Datadog  Leave us feedback  Documentation

iunanua and others added 2 commits January 16, 2025 09:15
Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
@iunanua iunanua merged commit 9a99ef1 into main Jan 17, 2025
71 checks passed
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

Successfully merging this pull request may close these issues.

3 participants