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

Taint objects #94

Merged
merged 6 commits into from
Jan 18, 2024
Merged

Taint objects #94

merged 6 commits into from
Jan 18, 2024

Conversation

iunanua
Copy link
Collaborator

@iunanua iunanua commented Jan 12, 2024

What does this PR do?

Exposes the newTaintedObject method to taint objects.

Motivation

Allow IAST to taint Buffer objects used for example by kafka consumers

Additional Notes

Checklist

  • Unit tests have been updated and pass

src/api/string_methods.cc Outdated Show resolved Hide resolved
@iunanua iunanua changed the title Initial NewTaintedObject Taint objects Jan 12, 2024
@iunanua iunanua marked this pull request as ready for review January 17, 2024 09:15
@iunanua iunanua requested a review from a team as a code owner January 17, 2024 09:15
@iunanua iunanua merged commit cad10e4 into main Jan 18, 2024
63 checks passed
return;
}

if ((args[1]->IsString())) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra pair of parenthesis

@@ -58,6 +61,7 @@ try {

const iastNativeMethods = {
newTaintedString: addon.newTaintedString,
newTaintedObject: addon.newTaintedObject,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Type declaration for the new method in index.d.ts file is missing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#95

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