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

Revert ndpi_strnstr() optimization introduced in a813121e0 #2439

Merged
merged 1 commit into from
May 11, 2024

Conversation

IvanNardi
Copy link
Collaborator

New implementation fails tests 11b, 12 and 13.
Revert to the original (BSD) implementation (with also some basic parameters check)

New implementation fails tests 11b, 12 and 13.
Revert to the original (BSD) implementation (with also some basic
parameters check)
Copy link

sonarcloud bot commented May 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@IvanNardi IvanNardi merged commit a064261 into ntop:dev May 11, 2024
33 checks passed
@IvanNardi IvanNardi deleted the strstr branch May 11, 2024 21:37
@0xA50C1A1
Copy link
Contributor

0xA50C1A1 commented May 13, 2024

@IvanNardi I apologize for my inattention, I should have double-checked. However, this issue can be easily fixed by replacing strnlen with strlen. Neither the new nor the old implementation of ndpi_strnstr is suitable for handling non null-terminated strings anyway, so we won't be losing anything

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.

None yet

2 participants