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

Created Fuzzing against Jackson and fixed multiple small bugs found with ti #28

Merged
merged 8 commits into from
Dec 29, 2023

Conversation

Breus
Copy link
Owner

@Breus Breus commented Dec 28, 2023

No description provided.

@Breus Breus requested a review from gavlyukovskiy December 28, 2023 08:57
if (maskingConfig.caseSensitiveTargetKeys()) {
this.targetKeysTrie.insert(key);
} else {
this.targetKeysTrie.insert(key.toLowerCase());
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't be necessary - trie already converts to lowercase/uppercase on prowler character basis, did it not work?

Copy link
Owner Author

@Breus Breus Dec 28, 2023

Choose a reason for hiding this comment

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

@gavlyukovskiy I think you are right, I just did this to replace:

        if (!caseSensitiveTargetKeys) {
            targets = targets.stream().map(String::toLowerCase).collect(Collectors.toSet());
        }
        targetKeys = targets;

Probably you forgot to remove that while introducing ByteTrie?

Copy link
Collaborator

@gavlyukovskiy gavlyukovskiy left a comment

Choose a reason for hiding this comment

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

Left one comment, but otherwise LGTM 👍

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Breus Breus merged commit f1c528d into master Dec 29, 2023
3 checks passed
@Breus Breus deleted the fuzzing-against-jackson branch December 29, 2023 07:43
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.

2 participants